330eb983d8
- apps/web/: prettier --write . 全量格式化(98个文件) - scripts/ci/auto_fix_formatting.py: black 格式化 纯格式改动,无业务逻辑变更
26 lines
558 B
TypeScript
26 lines
558 B
TypeScript
/**
|
|
* Vitest 配置文件
|
|
*/
|
|
import { defineConfig } from "vitest/config"
|
|
import react from "@vitejs/plugin-react"
|
|
import path from "path"
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: "./src/test/setup.ts",
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json", "html"],
|
|
exclude: ["node_modules/", "src/test/", "**/*.d.ts", "**/*.config.*", "**/mockData"],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
})
|