Initial Commit
This commit is contained in:
38
packages/api-stack/api/wasm-compiler-javy/vitest.config.ts
Normal file
38
packages/api-stack/api/wasm-compiler-javy/vitest.config.ts
Normal 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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user