fix(screenshots): force exit after capture to kill orphaned server

pnpm spawns vite as a grandchild process that SIGTERM doesn't reach,
leaving the CI job hanging after screenshots are captured.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-20 22:54:16 +01:00
co-authored by Claude Opus 4.6
parent 755d06cb94
commit 5de313f5d4
+3
View File
@@ -98,6 +98,9 @@ async function main(): Promise<void> {
} finally { } finally {
await browser.close(); await browser.close();
server.kill('SIGTERM'); server.kill('SIGTERM');
// Force exit — pnpm spawns vite as a grandchild process that
// server.kill() doesn't reach, leaving the CI job hanging
process.exit(0);
} }
} }