vitest.config.tsβ’653 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
exclude: [
'node_modules/**',
'dist/**',
'src/__tests__/**',
'**/*.test.ts',
'**/*.spec.ts',
'examples/**',
'scripts/**',
'*.config.ts',
],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
include: ['src/__tests__/**/*.test.ts'],
exclude: ['node_modules', 'dist'],
},
});