From d647308fe1f135d459ab0c3ed3d1c4c80789cb81 Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Tue, 3 Feb 2026 23:37:22 +0100 Subject: [PATCH] chore(09-02): configure coverage thresholds with baseline - Set global thresholds: statements 10%, branches 5%, functions 20%, lines 8% - Current coverage: statements ~12%, branches ~7%, functions ~24%, lines ~10% - Thresholds prevent regression, target is 80% (CI-01 decision) - Thresholds will be increased incrementally as more tests are added --- vite.config.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 150b407..25186eb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,8 +11,16 @@ export default defineConfig({ reporter: ['text', 'json', 'html'], include: ['src/**/*.{ts,svelte}'], exclude: ['src/**/*.test.ts', 'src/**/*.spec.ts'], + // Coverage thresholds - starting baseline, target is 80% (CI-01 decision) + // Current: statements ~12%, branches ~7%, functions ~24%, lines ~10% + // These thresholds prevent regression and will be increased incrementally thresholds: { - autoUpdate: true + global: { + statements: 10, + branches: 5, + functions: 20, + lines: 8 + } } }, projects: [