import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: ['**/node_modules/**', '**/dist/**', '**/*.config.*'], }, include: ['src/*/tests/**/*.test.ts', 'tests/**/*.test.ts'], exclude: ['**/node_modules/**', '**/smoke/**', 'src/db/tests/**'], testTimeout: 10000, // DB tests require a test database; run them explicitly via: // pnpm --filter db exec vitest run // globalSetup: ['src/db/tests/global-setup.ts'], }, });