Skip to content

Commit bf89678

Browse files
stewartjarodclaude
andcommitted
fix(e2e): start the dashboard with next directly, not pnpm exec
The runner gives the app process only PATH, HOME and the inheritEnv/env entries, so CI never reaches it. pnpm's pre-run dependency check then tried to reinstall and aborted with ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY, and the target failed with APP_UNREACHABLE before any test ran. The job has already run pnpm install --frozen-lockfile, so launch next's bin and skip pnpm. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxJAQSAJjD1Aip2CJVF6P3
1 parent cce24da commit bf89678

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/e2e/e2e.config.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { randomBytes } from "node:crypto";
22
import { existsSync, readFileSync } from "node:fs";
3+
import { resolve } from "node:path";
34
import { parseEnv } from "node:util";
45
import { web } from "@e2e-dev/web";
56
import { gateway } from "ai";
@@ -24,10 +25,10 @@ export default {
2425
// Never reuse a running dev server: these overrides are what make a
2526
// throwaway signup safe. Empty strings beat .env.local in Next's loader.
2627
command: {
27-
executable: "pnpm",
28+
// Not `pnpm exec next`: the child env drops CI, so pnpm's pre-run
29+
// dependency check tries to reinstall and aborts for want of a TTY.
30+
executable: resolve("../web/node_modules/.bin/next"),
2831
args: [
29-
"exec",
30-
"next",
3132
"dev",
3233
"--turbopack",
3334
"--hostname",

0 commit comments

Comments
 (0)