dd-timer/vitest.config.ts
POL Mickaël c640fbd416 feat: architecture DDD hexagonale + tooling Vite/TypeScript
Migration complète du monolithe vers une architecture en couches :
- Domain : entités, value objects, services purs, ports
- Application : CQRS avec CommandBus/QueryBus, 15+ commandes, 9 requêtes
- Tooling : Vite + TypeScript strict + Vitest + path aliases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 05:42:53 +02:00

29 lines
799 B
TypeScript

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 },
},
},
});