Files
CapaKraken/packages/shared/vitest.config.ts
Hartmut 8256673744
CI / Architecture Guardrails (push) Successful in 2m41s
CI / Lint (push) Successful in 4m21s
CI / Assistant Split Regression (push) Successful in 5m35s
CI / Typecheck (push) Successful in 5m55s
CI / Unit Tests (push) Failing after 5m34s
CI / Build (push) Successful in 4m27s
CI / Release Images (push) Has been cancelled
CI / E2E Tests (push) Has started running
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
test(shared): exclude type-only and static-data files from coverage
src/types/* are pure re-export files for TypeScript types (0 runtime
functions). src/constants/publicHolidays.ts and germanStates.ts are
static data constants. Together they drag %Funcs to ~55% in CI even
though every tested module is at 100%. Exclude them from the coverage
envelope so the thresholds reflect code that is actually exercised.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 20:57:58 +02:00

29 lines
738 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
coverage: {
provider: "v8",
// src/types/* are pure type-only re-export files and publicHolidays /
// germanStates are static data constants. Exclude them — they drag
// %Funcs down to ~55% while adding no real code-under-test.
exclude: [
"src/types/**",
"src/constants/publicHolidays.ts",
"src/constants/germanStates.ts",
"src/constants/index.ts",
"**/*.d.ts",
"**/__tests__/**",
],
thresholds: {
lines: 70,
functions: 70,
branches: 65,
statements: 70,
},
},
},
});