Skip to content

Commit

Permalink
Merge pull request #19 from CodeCrowCorp/dev
Browse files Browse the repository at this point in the history
Fix: code coverage reporting
  • Loading branch information
gagansuie authored Dec 7, 2022
2 parents 84499e6 + f6a90fe commit febe738
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
coverage/
e2eresults.json
18 changes: 11 additions & 7 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import type { PlaywrightTestConfig } from '@playwright/test';
import type { PlaywrightTestConfig } from '@playwright/test'

const config: PlaywrightTestConfig = {
webServer: {
command: 'npm run build && npm run preview',
port: 4173
}
};
reporter: [['json', { outputFile: 'e2eresults.json' }]],
webServer: {
command: 'npm run build && npm run preview',
port: 4173,
timeout: 240000,
reuseExistingServer: !process.env.CI,
},
workers: process.env.CI ? 4 : undefined
}

export default config;
export default config

0 comments on commit febe738

Please sign in to comment.