import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov', 'cobertura'],
exclude: [
'node_modules/**',
'build/**',
'tests/**',
'**/*.config.ts',
'**/*.d.ts',
],
// Coverage thresholds
// Note: Thresholds reflect testable business logic coverage
// Much of the codebase is MCP SDK integration which is intentionally
// not deeply mocked to avoid brittle tests. Business logic is thoroughly tested.
thresholds: {
lines: 13,
functions: 40,
branches: 0,
statements: 13,
},
},
include: ['tests/**/*.test.ts'],
testTimeout: 10000,
},
});