vitest.config.ts•606 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./tests/setup.ts'],
include: ['./tests/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/services/**', 'src/tools/**'],
exclude: ['src/tools/index.ts'],
thresholds: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
testTimeout: 10000,
hookTimeout: 10000,
silent: false,
passWithNoTests: true,
},
});