Convert tests to Vitest (#4)
This commit is contained in:
10
packages/website/scripts/test.js
Normal file
10
packages/website/scripts/test.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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()
|
||||
console.log("cypress run done")
|
||||
app.kill()
|
||||
Reference in New Issue
Block a user