Files
spaceflow/commands/review/vitest.config.ts
2026-02-15 22:02:21 +08:00

35 lines
724 B
TypeScript

import swc from "unplugin-swc";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [swc.vite()],
test: {
root: "src",
globals: true,
environment: "node",
include: ["**/*.spec.ts"],
coverage: {
provider: "v8",
include: ["**/*.ts"],
exclude: [
"**/*.spec.ts",
"**/*.module.ts",
"**/index.ts",
"**/__mocks__/**",
"**/*.command.ts",
"**/locales/**",
"**/dto/**",
"**/review-report/**",
"**/review.mcp.ts",
"**/review.config.ts",
],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
},
});