Skip to content

Commit 3690492

Browse files
committed
chore: use preview mode for tests in CI
1 parent 99b47c3 commit 3690492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineConfig({
7373

7474
/* Run your local dev server before starting the tests */
7575
webServer: {
76-
command: 'pnpm run dev',
76+
command: !process.env.CI ? 'pnpm run dev' : 'pnpm run preview --port 3000',
7777
url: 'http://localhost:3000',
7878
reuseExistingServer: !process.env.CI,
7979
},

0 commit comments

Comments
 (0)