Commit a44476409fbd10dd0d9ffbe867ddc996da11c046

Authored by zichun
1 parent 325ac2f9

fix(frontend): vitest 排除 tests/e2e/** 避免误收 Playwright spec

REQ_ID: FE-01
Showing 1 changed file with 2 additions and 1 deletions
frontend/vitest.config.ts
1   -import { defineConfig } from 'vitest/config';
  1 +import { defineConfig, configDefaults } from 'vitest/config';
2 2 import react from '@vitejs/plugin-react';
3 3  
4 4 export default defineConfig({
... ... @@ -7,5 +7,6 @@ export default defineConfig({
7 7 environment: 'jsdom',
8 8 globals: true,
9 9 setupFiles: ['./src/test-utils/setup.ts'],
  10 + exclude: [...configDefaults.exclude, 'tests/e2e/**'],
10 11 },
11 12 });
... ...