TypeScript
test(server): launcher PATH lookup test no longer drops the Windows drive letter (#22534)
Tristan Knightbc1b55844222
diff --git a/apps/server/src/cli/update.test.ts b/apps/server/src/cli/update.test.tsindex 7540c678f59..98ec13d3280 100644--- a/apps/server/src/cli/update.test.ts+++ b/apps/server/src/cli/update.test.ts@@ -407,6 +407,7 @@ it.layer(NodeServices.layer)("t3 update launcher", (it) => {Effect.gen(function* () {const fs = yield* FileSystem.FileSystem;const path = yield* Path.Path;+ const delimiter = (yield* HostProcess.Platform) === "win32" ? ";" : ":";const root = yield* fs.makeTempDirectoryScoped({ prefix: "t3-update-" });const launcher = path.join(root, "bin/t3");yield* fs.makeDirectory(path.dirname(launcher), { recursive: true });@@ -415,7 +416,7 @@ it.layer(NodeServices.layer)("t3 update launcher", (it) => {const bare = yield* resolveLauncherPath.pipe(Effect.provideService(HostProcess.InvokedAs, "t3"),Effect.provideService(HostProcess.Environment, {- PATH: `${path.join(root, "missing")}:${path.join(root, "bin")}`,+ PATH: [path.join(root, "missing"), path.join(root, "bin")].join(delimiter),}),Effect.provideService(HostProcess.WorkingDirectory, root),);@@ -433,7 +434,7 @@ it.layer(NodeServices.layer)("t3 update launcher", (it) => {assert.equal(bare, launcher);assert.equal(relative, launcher);assert.equal(absent, undefined);- }).pipe(Effect.scoped, Effect.provideService(HostProcess.Platform, "linux")),+ }).pipe(Effect.scoped),);});