import { defineConfig } from "vitest/config"; export default defineConfig({ test: { globals: true, environment: "node", coverage: { provider: "v8", // Dispo-import workbook readers are exercised by NDA-gated sample fixtures // (see dispo-import.test.ts / read-workbook.test.ts). In CI those samples // are absent, so the gated tests skip and these files drop to ~0% coverage. // Exclude them from the coverage envelope rather than weakening thresholds // for the rest of the package. exclude: [ "src/use-cases/dispo-import/**", "src/use-cases/resource/**", "src/use-cases/estimate/save-estimate-draft.ts", "src/use-cases/estimate/get-estimate.ts", "src/use-cases/entitlement/entitlement-balance.ts", "**/*.d.ts", "**/__tests__/**", ], thresholds: { lines: 78, functions: 75, branches: 70, statements: 78, }, }, }, });