Skip to content

Commit

Permalink
Run playwright in parallel with 4 workers
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Jun 11, 2024
1 parent 8a7147f commit 098568c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/smart-forms-app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers: process.env.CI ? 4 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand Down Expand Up @@ -71,8 +71,8 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run build && npm run preview',
url: 'http://localhost:4173',
command: 'npm run start',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI
}
});

0 comments on commit 098568c

Please sign in to comment.