mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-11 19:52:45 +08:00
35 lines
724 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|