chore(frontend): extend tsc coverage to e2e/configs, tighten vitest include (B0)

This commit is contained in:
2026-09-16 15:13:35 +08:00
parent 154ef11c90
commit 72cf13c8c3
4 changed files with 23 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { defineConfig } from "vitest/config";
// 组件测试一律 colocate 在 src/ 组件目录(*.test.tsx);放 test/ 下的 .test.tsx 不会被任何 project 捕获
// 组件测试一律 colocate 在 src/ 组件目录(*.test.tsx / *.test.ts);放 test/ 下的 .test.tsx 不会被任何 project 捕获
export default defineConfig({
resolve: { alias: { "@": new URL("./src", import.meta.url).pathname } },
test: {
@@ -14,7 +14,7 @@ export default defineConfig({
extends: true,
test: {
name: "components",
include: ["src/**/*.test.tsx"],
include: ["src/**/*.test.{ts,tsx}"],
environment: "jsdom",
setupFiles: ["test/setup.ts"],
},