Skip to content

Commit

Permalink
fix: reduce the memory consumption when running --experimental-vm-thr…
Browse files Browse the repository at this point in the history
…eads (#3872)
  • Loading branch information
sheremet-va committed Aug 3, 2023
1 parent a08e599 commit d1a08c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/config.ts
Expand Up @@ -215,7 +215,7 @@ export function resolveConfig(

resolved.experimentalVmWorkerMemoryLimit = stringToBytes(
getWorkerMemoryLimit(resolved),
totalmem(),
resolved.watch ? totalmem() / 2 : totalmem(),
)

if (options.resolveSnapshotPath)
Expand Down

0 comments on commit d1a08c8

Please sign in to comment.