import { defineConfig } from "vitest/config"; export default defineConfig({ test: { include: ["test/**/*.test.ts"], // Integration tests share one DB. Single worker + sequential files so // TRUNCATE + seed cannot race across files. pool: "threads", maxWorkers: 1, fileParallelism: false, env: { NODE_ENV: "test" }, }, });