modified: .gitignore
modified: .vscode/launch.json new file: e2e/playwright-collect-coverage.spec.ts modified: package-lock.json modified: package.json modified: playwright.config.ts new file: scripts/merge-lcov.cjs new file: scripts/normalize-lcov.cjs new file: scripts/playwright-collect-coverage.cjs new file: scripts/remap-and-report.cjs modified: vite.config.ts new file: vitest.config.ts
This commit is contained in:
1 parent
d0eb4e953c
commit
6192bd20eb
12 files changed
+1134
-10
No files matched your search
@@ -10,7 +10,7 @@ export default defineConfig({
|
||||
defineCoverageReporterConfig({
|
||||
sourceRoot: process.cwd(), // root used to resolve source files
|
||||
exclude: ['node_modules/**', 'e2e/**'], // exclude test sources and deps
|
||||
resultDir: path.join(process.cwd(), 'e2e-coverage-report'),
|
||||
resultDir: path.join(process.cwd(), 'coverage-reports/e2e'),
|
||||
reports: [
|
||||
['html'], // interactive HTML at results/e2e-coverage/index.html
|
||||
['lcovonly', { file: 'coverage.lcov' }], // LCOV for CI
|
||||
@@ -29,9 +29,11 @@ export default defineConfig({
|
||||
baseURL: 'http://127.0.0.1:4173',
|
||||
headless: true,
|
||||
trace: 'on-first-retry',
|
||||
navigationTimeout: 60_000, // 60s for page.goto / navigations
|
||||
actionTimeout: 30_000, // optional: for clicks/typing etc (default 30s)
|
||||
},
|
||||
webServer: {
|
||||
command: 'npm run dev -- --host --port 4173',
|
||||
command: 'E2E_COVERAGE=1 npm run dev -- --host --port 4173',
|
||||
url: 'http://127.0.0.1:4173',
|
||||
timeout: 120 * 1000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
|
||||
Reference in new issue
Block a user