import { defineConfig } from 'vitest/config'; import { fileURLToPath } from 'node:url'; export default defineConfig({ resolve: { alias: { '@': fileURLToPath(new URL('.', import.meta.url)), }, }, test: { environment: 'node', include: ['lib/**/*.test.ts', 'lib/**/*.test.tsx', 'tests/**/*.test.ts'], coverage: { provider: 'v8', reporter: ['text', 'html', 'lcov'], include: ['lib/**'], exclude: [ 'lib/**/*.test.ts', 'lib/**/*.test.tsx', // Generated by `prisma generate`; not ours to cover. 'lib/generated/**', ], // The business core must stay covered; the CI fails below these. thresholds: { 'lib/schedule/**': { statements: 85, branches: 85, functions: 85, lines: 85 }, 'lib/screen/**': { statements: 85, branches: 85, functions: 85, lines: 85 }, }, }, }, });