vitest.config.ts•797 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
exclude: ['**/node_modules/**', '**/dist/**', '**/examples/**/test/**'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'test/',
'**/*.test.ts',
'**/*.spec.ts',
'vitest.config.ts',
'src/index.ts', // Main entry point - tested in e2e
],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
},
setupFiles: ['./test/setup.ts'],
testTimeout: 10000,
},
resolve: {
alias: {
'@': '/src',
},
},
});