import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { include: ['test/**/*.test.ts'], // Integration tests need external services (Docker, real Redis + Postgres). // They are opt-in via `pnpm test:integration` (see vitest.integration.config.ts). // Excluding them here keeps `pnpm test` fast and CI-safe. exclude: ['**/node_modules/**', 'test/**/*.integration.test.ts'], environment: 'node', coverage: { provider: 'v8', reporter: ['text', 'lcov'], include: ['src/**/*.ts'], }, }, resolve: { // Allow vitest to import .ts files without explicit extensions // when referenced from test files that don't use .js suffixes extensions: ['.ts', '.js'], }, });