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 gap is tracked in // `openspec/changes/enterprise-rules-migration/tasks.md ยง6.5`. thresholds: { statements: 85, branches: 70, functions: 90, lines: 85, }, }, testTimeout: 5000, }, });