test(decnet_web): raise coverage floor after AttackerDetail split

Phase 1 of the UI refactor is in. AttackerDetail dropped from
2,579 LOC inline data + JSX to a 408-LOC shell composed of
extracted sections, each with co-located tests. Lock the gain by
bumping the threshold floor in vite.config.ts:

  lines       0 -> 7
  functions   0 -> 6
  branches    0 -> 5
  statements  0 -> 7

Future PRs raise these; never lower. Phase 1 final scoreboard:
9 test files, 45 tests, all green.
This commit is contained in:
2026-05-09 04:49:32 -04:00
parent d5efebd73d
commit 6d7c0b6419

View File

@@ -15,11 +15,13 @@ 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.
thresholds: {
lines: 0,
functions: 0,
branches: 0,
statements: 0,
lines: 7,
functions: 6,
branches: 5,
statements: 7,
},
},
},