From 6afbdf9c60cf77a58530dbfa0682d6eaf5425808 Mon Sep 17 00:00:00 2001 From: Frank Stellmacher <171614930+Psychotoxical@users.noreply.github.com> Date: Tue, 12 May 2026 01:00:56 +0200 Subject: [PATCH] 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. --- vitest.config.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/vitest.config.ts b/vitest.config.ts index 1466f598..6ffb773b 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -38,13 +38,17 @@ export default defineConfig({ 'src/main.tsx', 'src/vite-env.d.ts', ], - // Soft thresholds — Phase 0 is infra, not coverage push. Real numbers - // land in Phase 1 once cucadmuh and Frank lock the gate. + // Aggregate ratchet — prevents regressions across the whole tree. + // 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: { - lines: 0, - functions: 0, - branches: 0, - statements: 0, + lines: 12, + functions: 10, + branches: 9, + statements: 11, }, }, },