vitest.config.ts•760 B
import { defineConfig } from 'vitest/config';
import { resolve } from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
exclude: [
'node_modules/**',
'dist/**',
'tests/**',
'**/*.test.ts',
'**/*.config.ts',
'**/*.config.js',
'scripts/**',
'src/index.ts', // Entry point - requires integration tests
],
thresholds: {
lines: 85,
functions: 100,
branches: 74,
statements: 85,
},
},
setupFiles: ['./tests/setup.ts'],
},
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
});