Files
2026-05-27 23:29:53 +01:00

39 lines
1.3 KiB
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: false,
environment: "node",
pool: "forks",
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
exclude: ["dist/**", "node_modules/**"],
coverage: {
provider: "istanbul",
reporter: ["text", "html", "lcov"],
include: ["src/**/*.ts"],
exclude: [
"src/**/*.test.ts",
"src/**/*.types.ts",
"src/**/index.ts",
"src/index.ts",
"tests/**",
],
// Coverage thresholds calibrated to the package's
// verifiable surface. The compile orchestrator's error
// branches map to Javy/sandbox failure modes we cannot
// simulate without mocking real services (rule §2); the
// default-IO branches in the CLI are exercised by the
// bin script itself rather than by an in-process test.
// Integration coverage (tiny-plugin + api-plugin-example
// keystone) covers the happy path end-to-end.
thresholds: {
statements: 85,
branches: 75,
functions: 80,
lines: 85,
},
},
testTimeout: 60000,
},
});