Files
curriculum-project-hub/hub/vitest.config.ts
T
hongjr03 ee928b5832 fix(hub): restore project create payload and stabilize integration DB seed
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.
2026-07-30 14:44:11 +08:00

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" },
},
});