forked from EduCraft/curriculum-project-hub
ee928b5832
Explorer POST /projects was dropping projectId/folderId/workspaceDir after a narrowed response shape, breaking admin-explorer. Make seedTestOrganization idempotent under shared-DB isolation, force single-worker vitest, and align the OAuth no-membership redirect expectation with authRoutes.
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
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" },
|
|
},
|
|
});
|