From 6d7c0b64196c7c12332a700d77ecd742b16cbda0 Mon Sep 17 00:00:00 2001 From: anti Date: Sat, 9 May 2026 04:49:32 -0400 Subject: [PATCH] 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. --- decnet_web/vite.config.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/decnet_web/vite.config.ts b/decnet_web/vite.config.ts index 4a30a164..bebfca7d 100644 --- a/decnet_web/vite.config.ts +++ b/decnet_web/vite.config.ts @@ -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, }, }, },