From ef0b755eec1d98beecbf043765adccf43f50a570 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 14 Mar 2026 16:19:56 +0100 Subject: [PATCH] Add coverage thresholds for all tested directories, exclude dist from coverage Adds threshold entries for application, hooks, components, and components/ui directories. Ratchets existing thresholds to match actual coverage. Excludes **/dist/** from coverage to remove build output noise. Co-Authored-By: Claude Opus 4.6 --- vitest.config.ts | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/vitest.config.ts b/vitest.config.ts index 722b76b..18d502b 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -7,19 +7,36 @@ export default defineConfig({ coverage: { provider: "v8", enabled: true, + exclude: ["**/dist/**"], thresholds: { autoUpdate: true, "packages/domain/src": { - lines: 96, - branches: 96, + lines: 99, + branches: 97, + }, + "packages/application/src": { + lines: 97, + branches: 94, }, "apps/web/src/adapters": { - lines: 71, + lines: 72, branches: 78, }, "apps/web/src/persistence": { - lines: 87, - branches: 67, + lines: 90, + branches: 71, + }, + "apps/web/src/hooks": { + lines: 59, + branches: 85, + }, + "apps/web/src/components": { + lines: 52, + branches: 64, + }, + "apps/web/src/components/ui": { + lines: 73, + branches: 96, }, }, },