borgwarehouse/vitest.config.ts
2026-03-01 10:15:49 +01:00

28 lines
597 B
TypeScript

// vitest.config.ts
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
globals: true,
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**',
'**/.next/**',
'**/build/**',
'**/repos/**',
],
},
resolve: {
alias: {
'~': path.resolve(__dirname, './'),
},
},
});