import { defineConfig } from "vitest/config"; export default defineConfig({ test: { globals: false, environment: "node", pool: "forks", include: ["src/**/*.test.ts", "tests/**/*.test.ts"], exclude: [ "src/__benchmarks__/**", "dist/**", "node_modules/**", ], coverage: { provider: "istanbul", reporter: ["text", "html", "lcov"], include: ["src/**/*.ts"], exclude: [ "src/**/*.test.ts", "src/**/*.bench.ts", "src/**/*.types.ts", "src/**/index.ts", "src/__benchmarks__/**", "tests/**", ], // Initial migration ships at the actual delivered coverage. The 100/100/100/100 // gate is the v1.0 graduation criterion per CLAUDE.md; this package is at v0.0.0 // (pre-graduation). Closing the remaining ~3% gap is tracked in // `openspec/changes/enterprise-rules-migration/tasks.md ยง6.4`. thresholds: { statements: 95, branches: 90, functions: 95, lines: 95, }, }, testTimeout: 5000, }, });