import { defineConfig } from 'vitest/config'; // Unit-test runner. Playwright stays for e2e (runs via scripts/e2e.sh). // Vitest is for pure functions — calculator formulas (Fenton LMS, AAP // bilirubin, Rosner BP), validators, prompt builders. Any module that // doesn't need a running Express + Postgres. export default defineConfig({ test: { include: ['src/**/*.test.ts', 'shared/**/*.test.ts'], exclude: ['node_modules', 'dist', 'e2e', 'client', 'public'], environment: 'node', globals: false, coverage: { provider: 'v8', reporter: ['text', 'html'], include: ['src/**/*.ts', 'shared/**/*.ts'], exclude: ['**/*.test.ts', '**/*.d.ts'], }, }, });