import path from 'path'; import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'node', include: ['src/**/*.spec.ts'], exclude: ['src/**/*.integration.spec.ts', 'node_modules'], env: { BCRYPT_ROUNDS: '4', }, coverage: { provider: 'v8', reporter: ['text', 'text-summary', 'html', 'lcov', 'json-summary'], reportsDirectory: './coverage', include: ['src/**/*.ts'], exclude: [ 'src/**/*.spec.ts', 'src/**/*.integration.spec.ts', 'src/**/__tests__/**', 'src/**/*.module.ts', 'src/**/*.dto.ts', 'src/**/index.ts', 'src/main.ts', ], // GOO-134: CI gate thresholds. Branches raised to 60 via GOO-180 // (payments/sbv-compliance, subscriptions/quotas, auth/guards). // CTO approval: 8f2b125a. thresholds: { statements: 70, lines: 70, functions: 70, branches: 60, }, }, }, resolve: { alias: { '@modules': path.resolve(__dirname, 'src/modules'), }, }, });