Skip to content

Commit 1162d3c

Browse files
committed
test(webapp): cap vitest fork concurrency to bound testcontainer memory on CI
1 parent e0b35d5 commit 1162d3c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/webapp/vitest.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export default defineConfig({
2323
exclude: ["test/**/*.e2e.test.ts", "test/**/*.e2e.full.test.ts"],
2424
globals: true,
2525
pool: "forks",
26+
// Each fork boots its own testcontainer set (including the two-DB run-ops fixtures),
27+
// so cap concurrency to keep per-runner container memory in check. Sharding still
28+
// provides cross-runner parallelism.
29+
poolOptions: { forks: { maxForks: 4, minForks: 1 } },
2630
setupFiles: ["./test/setup.ts"], // load apps/webapp/.env
2731
},
2832
// @ts-ignore

0 commit comments

Comments
 (0)