Files
reacord/packages/docs/scripts/test.js
MapleLeaf e93506409f no esmo
2022-01-11 00:25:13 -06:00

10 lines
292 B
JavaScript

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()