import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
reporters: ['basic'],
onConsoleLog: () => false,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.ts'],
exclude: [
'src/index.ts', // Complex MCP handlers, test later
'src/filter-reference.ts', // Static content
'src/logger.ts', // Trivial wrapper
'node_modules/**',
'dist/**'
],
thresholds: {
lines: 60,
functions: 60,
branches: 60,
statements: 60
}
},
include: ['tests/**/*.test.ts'],
exclude: ['node_modules/**', 'dist/**'],
testTimeout: 10000
}
});