chore(test): activate aggregate vitest coverage thresholds (#553)

Replaces 0/0/0/0 placeholders with a measured floor (~1pp under current
state) so the suite blocks regressions across the whole tree. Per-file
hot-path gate keeps doing the heavy lifting on critical files.
This commit is contained in:
Frank Stellmacher
2026-05-12 01:00:56 +02:00
committed by GitHub
parent b3646daabd
commit 6afbdf9c60
+10 -6
View File
@@ -38,13 +38,17 @@ export default defineConfig({
'src/main.tsx', 'src/main.tsx',
'src/vite-env.d.ts', 'src/vite-env.d.ts',
], ],
// Soft thresholds — Phase 0 is infra, not coverage push. Real numbers // Aggregate ratchet — prevents regressions across the whole tree.
// land in Phase 1 once cucadmuh and Frank lock the gate. // Set ~1pp under the current measured floor (lines 13.3, statements
// 12.5, functions 11.3, branches 9.9 as of 2026-05-12). Real per-file
// coverage on critical paths is enforced by the hot-path gate
// (.github/frontend-hot-path-files.txt + scripts/check-frontend-coverage.cjs).
// Bump these numbers up as refactor PRs add coverage; never down.
thresholds: { thresholds: {
lines: 0, lines: 12,
functions: 0, functions: 10,
branches: 0, branches: 9,
statements: 0, statements: 11,
}, },
}, },
}, },