import { defineConfig } from 'vitest/config'; /** * Dedicated config for long-running stress/benchmark simulations. * * These tests use the `.bench.ts` suffix so they are EXCLUDED from the * default `npm test` run (which uses the standard `*.test.ts` pattern). * Run them explicitly with: * * npm run test:bench * npm run test:bench -- tests/stress/summer-2026-simulation.bench.ts */ export default defineConfig({ test: { include: ['tests/**/*.bench.ts'], testTimeout: 900_000, // 15 min per test hookTimeout: 900_000, teardownTimeout: 900_000, // Benches are memory-heavy; run sequentially in a single fork pool: 'forks', poolOptions: { forks: { singleFork: true, }, }, }, });