vitest.config.tsā¢847 B
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
globalSetup: "./src/__tests__/globalSetup.ts",
testTimeout: 10000, // 10 seconds for integration tests
coverage: {
provider: "v8",
reporter: ["text", "json", "json-summary", "html", "lcov"],
reportsDirectory: "./coverage",
exclude: [
"node_modules/",
"dist/",
"coverage/",
"**/*.test.ts",
"**/*.config.ts",
"**/types.ts",
],
thresholds: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70,
},
},
},
},
resolve: {
alias: {
"@": "/src",
},
},
});