Skip to content

Commit 3c67a4c

Browse files
authored
fix: pass --experimental-vm-worker-memory-limit to tinypool (#3856)
1 parent 065a08e commit 3c67a4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vitest/src/node/pools/vm-threads.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export function createVmThreadsPool(ctx: Vitest, { execArgv, env }: PoolProcessO
6666
],
6767

6868
terminateTimeout: ctx.config.teardownTimeout,
69+
maxMemoryLimitBeforeRecycle: ctx.config.experimentalVmWorkerMemoryLimit || undefined,
6970
}
7071

7172
if (ctx.config.singleThread) {

0 commit comments

Comments
 (0)