From ae76f3b4568c8cc14cb5104f2f2d28117e64f1d2 Mon Sep 17 00:00:00 2001 From: veillettem Date: Tue, 8 Sep 2026 11:34:56 -0400 Subject: [PATCH] fix: restore vitest 5 coverage excludes for tests/ Bare tests/ exclude paths no longer match under vitest 5, so mocks were counted and tripped coverage thresholds after the v5 bump. Co-authored-by: Cursor --- vitest.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vitest.config.js b/vitest.config.js index ba32772..f99dc84 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -9,7 +9,14 @@ export default defineConfig({ coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], - exclude: ['node_modules/', 'tests/', 'examples/', '*.config.js', 'docs/'], + // Vitest 5 resolves coverage excludes as globs; bare `tests/` no longer matches. + exclude: [ + '**/node_modules/**', + '**/tests/**', + '**/examples/**', + '**/*.config.js', + '**/docs/**', + ], // Minimum coverage thresholds. Set to just under the current measured // coverage of cd48.js (the gap is mostly auto-reconnect / advanced-measure // branches). Raise these as the corresponding unit tests are added.