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
  • Loading branch information
sheremet-va committed Aug 3, 2023
1 parent a08e599 commit d187fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/config.ts
Original file line number Diff line number Diff line change
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 d187fd3

Please sign in to comment.