From f6796f685f0298e881d2e41eb2a202f47c2710fc Mon Sep 17 00:00:00 2001 From: Vaclav Vancura Date: Mon, 30 Mar 2026 09:09:42 +0200 Subject: [PATCH] chore(ci): exclude bench files from unit test coverage Benchmark files (*.bench.ts) are performance test suites run via `pnpm bench`, not unit tests. Including them in v8 coverage was counting their functions as uncovered and dragging function coverage below the 80% threshold. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Vaclav Vancura --- vitest.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index d698ce9..81b6c05 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ coverage: { provider: 'v8', include: ['src/**/*.ts'], - exclude: ['src/**/*.test.ts', 'src/__test__/**'], + exclude: ['src/**/*.test.ts', 'src/**/*.bench.ts', 'src/__test__/**'], thresholds: { statements: 80, branches: 80, -- 2.51.2