remove detached flag

This commit is contained in:
MapleLeaf
2022-01-10 23:50:45 -06:00
parent d0c940c693
commit 2e4ff0f524

View File

@@ -3,9 +3,9 @@ import { execa } from "execa"
import waitOn from "wait-on"
await execa("pnpm", ["build"], { stdio: "inherit" })
const app = execa("pnpm", ["start"], { stdio: "inherit", detached: true })
const app = execa("pnpm", ["start"], { stdio: "inherit" })
await waitOn({ resources: ["http-get://localhost:3000"] })
await cypress.run()
process.kill(app.pid!, "SIGKILL")
app.kill()
// eslint-disable-next-line unicorn/no-process-exit
process.exit(0)