forked from EduCraft/curriculum-project-hub
fix(hub): assert DB wipe and single-worker integration tests
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.
This commit is contained in:
@@ -7,6 +7,7 @@ export default defineConfig({
|
||||
// concurrent truncate/insert races. Unit tests are fast either way.
|
||||
pool: "forks",
|
||||
fileParallelism: false,
|
||||
maxWorkers: 1,
|
||||
env: { NODE_ENV: "test" },
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user