vitest.config.ts•607 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
testTimeout: 30000,
hookTimeout: 30000,
teardownTimeout: 10000,
include: ['test/**/*.{test,spec}.{js,ts}'],
exclude: ['node_modules', 'dist'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'test/',
'**/*.d.ts',
'**/*.config.*'
]
}
},
resolve: {
alias: {
'@': new URL('./src', import.meta.url).pathname
}
}
});