Skip to content

Commit

Permalink
Merge pull request #176 from gagan-suie/dev
Browse files Browse the repository at this point in the history
Fix: testing playwright tests
  • Loading branch information
gagansuie authored Jan 19, 2023
2 parents f794d0f + de9b829 commit 2a59e15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ import type { PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
reporter: [['json', { outputFile: 'e2eresults.json' }]],
webServer: {
command: 'npm run build && npm run preview',
port: 5173,
command: 'npm run dev',
url: 'http://localhost:5173/',
timeout: 240000,
reuseExistingServer: !process.env.CI,
},
use: {
baseURL: 'http://localhost:5173/',
},
workers: process.env.CI ? 4 : undefined
}

Expand Down

0 comments on commit 2a59e15

Please sign in to comment.