chore(frontend): extend tsc coverage to e2e/configs, tighten vitest include (B0)
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user