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
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user