try to kill detached process
This commit is contained in:
@@ -3,7 +3,7 @@ import { execa } from "execa"
|
|||||||
import waitOn from "wait-on"
|
import waitOn from "wait-on"
|
||||||
|
|
||||||
await execa("pnpm", ["build"], { stdio: "inherit" })
|
await execa("pnpm", ["build"], { stdio: "inherit" })
|
||||||
const app = execa("pnpm", ["start"], { stdio: "inherit" })
|
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()
|
||||||
app.kill("SIGKILL")
|
process.kill(app.pid!)
|
||||||
|
|||||||
Reference in New Issue
Block a user