vitest.config.tsā¢647 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./tests/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'tests/',
'**/*.d.ts',
'**/*.config.ts',
'**/*.test.ts',
'**/*.spec.ts',
],
threshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
},
},
esbuild: {
target: 'node18',
},
});