codigo0/backend/vitest.config.ts

22 lines
469 B
TypeScript
Raw Normal View History

import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['src/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/shared/schemas/**/*.ts'],
exclude: ['src/**/*.test.ts', 'src/**/*.d.ts'],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
});