Skip to content

Commit 4aaa40f

Browse files
authored
Run tests against prod build of Next (#791)
1 parent a562190 commit 4aaa40f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/playground/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default defineConfig({
2323
},
2424
},
2525

26-
// Run the local dev server before starting tests
26+
// Build and run the production server before starting tests
2727
webServer: {
28-
command: 'pnpm --filter "playground" dev',
28+
command: 'pnpm --filter "playground" build && pnpm --filter "playground" start',
2929
url: 'http://localhost:3000',
3030
reuseExistingServer: !process.env.CI,
3131
timeout: 120 * 1000,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build:pkg": "pnpm --filter \"@radix-ui/*\" build",
88
"dev": "turbo run dev --no-cache --continue",
99
"test:vr": "pnpm -r test:vr",
10+
"test:vr:update": "pnpm -r test:vr:update",
1011
"lint": "turbo run lint",
1112
"clean": "turbo run clean && rm -rf node_modules .turbo",
1213
"format": "prettier --write .",

0 commit comments

Comments
 (0)