Skip to content

Commit

Permalink
add conditional webserver when in CI env
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Mar 4, 2024
1 parent 8d715e8 commit 7f29638
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ export default defineConfig({
// },
],

webServer: {
command: 'npm run example-app:start',
// Wait for the backend to start
url: 'http://localhost:3001',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
webServer: process.env.CI
? {
command: 'npm run example-app:start',
// Wait for the backend to start
url: 'http://localhost:3001',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
}
: undefined,
});

0 comments on commit 7f29638

Please sign in to comment.