kill detached process with sigkill

This commit is contained in:
MapleLeaf
2022-01-10 23:43:47 -06:00
parent b65004dd75
commit 01f245c2e2

View File

@@ -6,4 +6,4 @@ await execa("pnpm", ["build"], { stdio: "inherit" })
const app = execa("pnpm", ["start"], { stdio: "inherit", detached: true }) const app = execa("pnpm", ["start"], { stdio: "inherit", detached: true })
await waitOn({ resources: ["http-get://localhost:3000"] }) await waitOn({ resources: ["http-get://localhost:3000"] })
await cypress.run() await cypress.run()
process.kill(app.pid!) process.kill(app.pid!, "SIGKILL")