vitest.config.jsā¢849 B
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["test/**/*.{test,spec}.{js,mjs,ts}"],
exclude: [
"node_modules/**",
"build/**",
"coverage/**",
"test/test-*.ts", // Exclude old integration test files
],
coverage: {
provider: "v8",
reporter: ["text", "json", "html", "lcov"],
exclude: [
"node_modules/**",
"build/**",
"coverage/**",
"test/**",
"**/*.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
],
reportsDirectory: "coverage",
thresholds: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70,
},
},
},
setupFiles: ["test/setup.ts"],
},
});