From 685fcab605db7d0a22272afffb81e0a8c3b2d5e6 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Mon, 28 Sep 2026 08:41:29 +0200 Subject: [PATCH] fix(e2e): launch server directly so Playwright can stop it pnpm 12.6 moves script children into their own process group. Playwright stops its webServer with a process-group kill, so the server spawned via `pnpm start` survived teardown and every E2E job hung until the 30 minute timeout after all tests had passed. --- playwright.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 14b4781e0..72398137c 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -30,7 +30,9 @@ export default defineConfig({ }, ], webServer: { - command: "pnpm start", + // Run node directly: pnpm >=12.6 moves script children into their own process group, + // so Playwright's group kill misses the server and the job hangs after the tests finish. + command: "node apps/server/dist/index.mjs", url: `${baseURL}/api/health`, reuseExistingServer: !isCI, timeout: 120_000,