diff --git a/scripts/screenshots.ts b/scripts/screenshots.ts index c486ccf..123c02f 100644 --- a/scripts/screenshots.ts +++ b/scripts/screenshots.ts @@ -98,6 +98,9 @@ async function main(): Promise { } finally { await browser.close(); 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); } }