Skip to content

Commit

Permalink
chore: use preview mode for tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Jan 25, 2025
1 parent 99b47c3 commit 3690492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'pnpm run dev',
command: !process.env.CI ? 'pnpm run dev' : 'pnpm run preview --port 3000',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit 3690492

Please sign in to comment.