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

31 lines
689 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: false,
environment: "node",
pool: "forks",
setupFiles: ["@suaveplan/testing/polyfills"],
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
exclude: [
"dist/**",
"node_modules/**",
"tests/integration/**",
],
coverage: {
provider: "istanbul",
reporter: ["text", "html", "lcov"],
include: ["src/**/*.ts"],
exclude: [
"src/**/*.test.ts",
"src/**/*.types.ts",
"src/**/index.ts",
"src/**/__benchmarks__/**",
"tests/**",
],
thresholds: { statements: 100, branches: 100, functions: 100, lines: 100 },
},
testTimeout: 30000,
},
});