import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.test.ts'],
exclude: ['node_modules', 'dist', 'test-app'],
setupFiles: ['tests/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'test-app/',
'tests/',
'**/*.d.ts',
'**/*.config.*',
'**/index.ts'
]
},
testTimeout: 10000,
hookTimeout: 10000
},
resolve: {
alias: {
'@': '/src'
}
}
});