From dc8a7b1a0942abe1b731302453dfa977c4c0e054 Mon Sep 17 00:00:00 2001 From: Brendan Ryan <1572504+brendanjryan@users.noreply.github.com> Date: Tue, 24 Mar 2026 11:34:31 -0700 Subject: [PATCH] test: add 50% coverage threshold ratchet Set coverage floor at 50% for statements, branches, and functions. CI will fail if coverage drops below these thresholds. Current measured coverage (without localnet): - Statements: 44.6% (needs ~5.4% lift) - Branches: 41.8% (needs ~8.2% lift) - Functions: 54.3% (already passing) --- vitest.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index 14814da1..094b0897 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -25,7 +25,13 @@ const alias = { export default defineConfig({ test: { coverage: { - exclude: ['test/**'], + include: ['src/**'], + exclude: ['test/**', 'src/cli/**', 'src/bin.ts', '**/*.test-d.ts'], + thresholds: { + statements: 50, + branches: 50, + functions: 50, + }, }, globalSetup: ['./test/setup.global.ts'], projects: [