import { defineConfig } from 'vitest/config'; import { resolve } from 'path'; export default defineConfig({ resolve: { alias: { '@domain': resolve(__dirname, 'src/domain'), '@application': resolve(__dirname, 'src/application'), '@infrastructure': resolve(__dirname, 'src/infrastructure'), '@presentation': resolve(__dirname, 'src/presentation'), }, }, test: { globals: true, environment: 'node', include: ['tests/**/*.test.ts'], coverage: { provider: 'v8', include: ['src/domain/**', 'src/application/**'], exclude: [ 'src/domain/ports/**', 'src/domain/events/DomainEvent.ts', 'src/domain/value-objects/Gender.ts', ], thresholds: { branches: 80, functions: 80, lines: 80 }, }, }, });