vitest.config.ts 433 B

12345678910111213
  1. import { defineConfig } from "vitest/config";
  2. export default defineConfig({
  3. test: {
  4. // Bugfix: 外部 zcode-cli 历史里同时存在 test/ 和 tests/ 目录;合入 apps 后需要同时保留两种约定,避免新增包测试被根 include 规则过滤掉。
  5. include: [
  6. "test/**/*.test.ts",
  7. "tests/**/*.test.ts",
  8. "packages/*/test/**/*.test.ts",
  9. "packages/*/tests/**/*.test.ts",
  10. ],
  11. },
  12. });