import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['src/**/*.test.ts', 'tests/**/*.test.ts'],
exclude: ['node_modules', 'dist'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
exclude: [
'node_modules',
'dist',
'**/*.config.ts',
'**/*.test.ts',
'**/*.spec.ts',
'**/types.ts',
],
thresholds: {
statements: 90,
branches: 90,
functions: 90,
lines: 90,
},
},
reporters: ['default', 'verbose'],
testTimeout: 30000,
hookTimeout: 30000,
},
});