Files
sternboard/server/vitest.config.ts
T

16 lines
439 B
TypeScript
Raw Normal View History

import { defineConfig } from "vitest/config";
const TEST_DB =
process.env.TEST_DATABASE_URL ?? "postgres://retro:retro@localhost:5433/retro_test";
export default defineConfig({
test: {
globalSetup: "./test/global-setup.ts",
setupFiles: "./test/truncate.ts",
env: { DATABASE_URL: TEST_DB },
fileParallelism: false, // comparten la misma DB; evitamos carreras
hookTimeout: 30_000,
testTimeout: 20_000,
},
});