This commit is contained in:
MapleLeaf
2022-01-10 23:59:22 -06:00
parent 8482f6e91a
commit e93506409f
3 changed files with 4 additions and 19 deletions

View File

@@ -0,0 +1,9 @@
import cypress from "cypress"
import { execa } from "execa"
import waitOn from "wait-on"
await execa("pnpm", ["build"], { stdio: "inherit" })
const app = execa("pnpm", ["start"], { stdio: "inherit" })
await waitOn({ resources: ["http-get://localhost:3000"] })
await cypress.run()
app.kill()