Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
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,
},
});