forked from EduCraft/curriculum-project-hub
0f4377f16c
Fail fast if TRUNCATE left Organization rows, drop the extra deleteMany before seed create, and force vitest maxWorkers=1 so forks cannot race the shared Postgres.
14 lines
373 B
TypeScript
14 lines
373 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["test/**/*.test.ts"],
|
|
// Integration tests share one DB; run files sequentially to avoid
|
|
// concurrent truncate/insert races. Unit tests are fast either way.
|
|
pool: "forks",
|
|
fileParallelism: false,
|
|
maxWorkers: 1,
|
|
env: { NODE_ENV: "test" },
|
|
},
|
|
});
|