import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.test.ts'],
exclude: process.env.SKIP_BENCHMARKS
? ['**/node_modules/**', '**/benchmarks/**']
: ['**/node_modules/**'],
reporters: [
'default',
'./tests/test-results/per-file-reporter.js',
],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'json-summary', 'html'],
reportsDirectory: './coverage',
include: ['src/**/*.ts'],
exclude: [
'node_modules/',
'dist/',
'**/*.d.ts',
'**/*.config.*',
'**/tests/**',
'src/**/index.ts',
],
},
},
});