import { defineConfig } from "vitest/config"; export default defineConfig({ resolve: { tsconfigPaths: true }, test: { environment: "node", globals: false, include: ["**/*.integration.test.ts"], // "**/node_modules/**" (not "node_modules/**") — see vitest.config.mts's // own comment for why this matters once a nested node_modules // (manager/node_modules) exists in the repo. exclude: ["**/node_modules/**", ".next/**", "templates/**", "manager/**"], // Concurrency tests (double-booking prevention) need real, unshared // DB connections and predictable ordering — run integration test // files one at a time. fileParallelism: false, testTimeout: 20000, }, });