mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-11 19:52:45 +08:00
chore: 初始化仓库
This commit is contained in:
34
commands/review/vitest.config.ts
Normal file
34
commands/review/vitest.config.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user