Files

23 lines
494 B
TypeScript
Raw Permalink Normal View History

2026-02-05 15:23:37 +08:00
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
testTimeout: 30000,
hookTimeout: 30000,
include: ['tests/**/*.test.ts'],
setupFiles: ['tests/setup.ts'],
// 串行执行测试以避免数据库竞争
fileParallelism: false,
maxConcurrency: 1,
alias: {
'@': new URL('./src', import.meta.url).pathname,
},
},
resolve: {
alias: {
'@': '/src',
},
},
});