import { defineConfig } from 'vitest/config'; /** * Vitest config for integration tests that depend on external services * (Docker, real Redis, etc.). Run via `pnpm test:integration`. Requires * a working Docker daemon — `testcontainers` will spin up the services * it needs, then tear them down. * * NOT run in default CI. Run locally before changes that touch the * Redis publisher, or run in a separate CI job that has Docker access. */ export default defineConfig({ test: { include: ['test/**/*.integration.test.ts'], environment: 'node', // Container startup can be slow on first run (image pull, ryuk // container, etc). Allow generous hook + test timeouts. hookTimeout: 120_000, testTimeout: 60_000, }, resolve: { extensions: ['.ts', '.js'], }, });