| 123456789101112 |
- import { defineConfig } from "vitest/config";
- /**
- * 组件级(DOM)测试:只跑 `src` 下的 `*.test.tsx`,与既有纯逻辑测试
- * (`tests/*.test.mjs`,node --test,无 DOM)互不影响。
- */
- export default defineConfig({
- test: {
- environment: "jsdom",
- include: ["src/**/*.test.{ts,tsx}"],
- },
- });
|