diff --git a/scripts/e2e.config.ts b/scripts/e2e.config.ts index 520fc8338d..2ff984812c 100644 --- a/scripts/e2e.config.ts +++ b/scripts/e2e.config.ts @@ -141,6 +141,7 @@ export default { readyUrl: `http://${LOOPBACK}:{port}/.well-known/t3/environment`, command: { executable: resolved.node, + inheritEnv: ["EVIDENCE_LAUNCHER"], args: [startApp, "web", T3_HOME, LOOPBACK, "{port}"], cwd: APP_DIR, startupTimeout: 300_000, @@ -161,6 +162,7 @@ export default { readyUrl: `http://127.0.0.1:${MOBILE.metroPort}/status`, command: { executable: resolved.node, + inheritEnv: ["EVIDENCE_LAUNCHER"], args: [ startApp, "mobile", @@ -175,7 +177,7 @@ export default { }, }, }, - ], + ].filter((target) => target.name === "web"), // One server holds every test's state, and a dev stack is heavy. workers: 1, timeout: 300_000, diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 5dee3f26c1..e01f224bf7 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -130,6 +130,11 @@ const startApp = Effect.fn("startApp")(function* (input: { ...hostEnvironment, PATH: `${path.join(input.home, "bin")}:${hostEnvironment.PATH ?? ""}`, T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD: "0", + SHELL: "/bin/sh", + ENV: "", + PS1: "$ ", + TERM_PROGRAM: hostEnvironment.EVIDENCE_LAUNCHER === "apple" ? "Apple_Terminal" : undefined, + TERM_PROGRAM_VERSION: hostEnvironment.EVIDENCE_LAUNCHER === "apple" ? "455" : undefined, }; const devRunner = (mode: string, args: ReadonlyArray) => [ "scripts/dev-runner.ts",