test(decnet_web): raise coverage floor after DeckyFleet split
Phase 2 lands. DeckyFleet.tsx dropped from 1,674 to 274 LOC; the fleet page is now a thin composition of useDeckyFleet + 6 extracted children (DeckyInspectPanel, IntervalEditor, DeckyCard, DeployWizard, DeckyFilters, DeckyGridEmpty), each with co-located tests. Lock the gain by bumping the threshold floor in vite.config.ts: lines 7 -> 11 functions 6 -> 10 branches 5 -> 8 statements 7 -> 11 Phase 2 final scoreboard: 21 test files, 98 tests, all green.
This commit is contained in:
@@ -15,13 +15,14 @@ export default defineConfig({
|
||||
include: ['src/**/*.{ts,tsx}'],
|
||||
exclude: ['src/**/*.d.ts', 'src/test/**', 'src/main.tsx'],
|
||||
// Baseline floors. Each refactor PR raises these; never lower.
|
||||
// Locked in after Phase 1 (AttackerDetail split: hook + 6 sections,
|
||||
// 45 tests across 9 files): 7.78% lines, 5.35% branches.
|
||||
// Phase 2 (DeckyFleet split): page shell down from 1,674 to 274
|
||||
// LOC; hook + 6 children, 28 new tests. Suite: 21 files, 98 tests,
|
||||
// 11.95% lines / 8.78% branches.
|
||||
thresholds: {
|
||||
lines: 7,
|
||||
functions: 6,
|
||||
branches: 5,
|
||||
statements: 7,
|
||||
lines: 11,
|
||||
functions: 10,
|
||||
branches: 8,
|
||||
statements: 11,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user