From 8d839deda486ba699a25c759f5826853f8b885c0 Mon Sep 17 00:00:00 2001 From: AriPerkkio Date: Tue, 1 Aug 2023 19:27:40 +0300 Subject: [PATCH] fix: pass `--experimental-vm-worker-memory-limit` to `tinypool` --- packages/vitest/src/node/pools/vm-threads.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vitest/src/node/pools/vm-threads.ts b/packages/vitest/src/node/pools/vm-threads.ts index 5cc867834728..77eb53e93294 100644 --- a/packages/vitest/src/node/pools/vm-threads.ts +++ b/packages/vitest/src/node/pools/vm-threads.ts @@ -66,6 +66,7 @@ export function createVmThreadsPool(ctx: Vitest, { execArgv, env }: PoolProcessO ], terminateTimeout: ctx.config.teardownTimeout, + maxMemoryLimitBeforeRecycle: ctx.config.experimentalVmWorkerMemoryLimit || undefined, } if (ctx.config.singleThread) {