chore: add test coverage (#4960)

This commit is contained in:
Alireza authored and GitHub committed 2025-04-16 15:56:52 -04:00
1 parent a41ed3bade
commit 91117f40f8
51 files changed
+1302 -346

No files matched your search

+3 -3
View File
@@ -4,8 +4,8 @@ export default defineConfig({
testDir: './tests',
fullyParallel: !!process.env.CI,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
retries: process.env.CI ? 3 : 0,
workers: process.env.CI ? 8 : undefined,
snapshotPathTemplate: './tests/screenshots{/projectName}/{testFilePath}/{arg}{ext}',
outputDir: './tests/test-results',
reporter: [[process.env.CI ? 'blob' : 'html', { outputFolder: './tests/playwright-report' }]],
@@ -38,7 +38,7 @@ export default defineConfig({
//},
],
webServer: {
command: 'cross-env APP_CONFIG=config/e2e.js yarn start',
command: 'cross-env APP_CONFIG=config/e2e.js COVERAGE=true nyc yarn start',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 360_000,