import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { environment: 'node', include: ['test/**/*.test.ts'], /* * One file at a time. * * These are integration tests against ONE live database, and several files * mutate rows the seed owns — deck.router deletes every request and swipe on * the seeded job in a beforeEach, others create verified pros that land on * that same job's deck. Run in parallel, a file can see another's writes * between its own `before` and `after` reads, so `remaining` counts and * fixture lookups fail perhaps one run in three. * * The alternative is a database per worker, which is the right answer at a * larger scale and a lot of machinery for a suite this size. Until then, * serialising costs a few seconds and removes the whole class. */ fileParallelism: false, }, });