mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 12:06:57 +02:00
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:
co-authored by
Claude Opus 4.6
parent
54f0bb847c
commit
dfe791ea44
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user