vitest.config.mtsβ’624 B
import { defineConfig } from 'vitest/config';
import swc from 'unplugin-swc';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'dist/',
'**/*.spec.ts',
'**/*.test.ts',
'**/test/**',
'**/*.config.{js,ts,mjs,mts}',
'eslint.config.mjs',
'src/main.ts', // Entry point - actual logic is tested via main.test-helper.ts
],
},
},
plugins: [
swc.vite({
module: { type: 'es6' },
}),
],
});