Files
initiative/vitest.config.ts
Lukas ef0b755eec
All checks were successful
CI / check (push) Successful in 1m4s
CI / build-image (push) Successful in 27s
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 <noreply@anthropic.com>
2026-03-14 16:19:56 +01:00

45 lines
844 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["packages/*/src/**/*.test.ts", "apps/*/src/**/*.test.{ts,tsx}"],
passWithNoTests: true,
coverage: {
provider: "v8",
enabled: true,
exclude: ["**/dist/**"],
thresholds: {
autoUpdate: true,
"packages/domain/src": {
lines: 99,
branches: 97,
},
"packages/application/src": {
lines: 97,
branches: 94,
},
"apps/web/src/adapters": {
lines: 72,
branches: 78,
},
"apps/web/src/persistence": {
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,
},
},
},
},
});