chore: 添加 vitest.config.ts — 排除 e2e 测试目录,配置 @/ 路径别名

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 14:18:42 +08:00
parent 45e2a4e584
commit 2b372cbf89
+13
View File
@@ -0,0 +1,13 @@
import { defineConfig } from 'vitest/config';
import path from 'node:path';
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
test: {
exclude: ['e2e/**', 'node_modules/**', 'src-tauri/**'],
},
});