Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Aug 3, 2023
1 parent e44dce6 commit 0453e9f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/vitest/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,10 @@ export function resolveConfig(

const memory = totalmem()

if (memory) {
resolved.experimentalVmWorkerMemoryLimit = stringToBytes(
getWorkerMemoryLimit(resolved),
resolved.watch ? memory / 2 : memory,
)
}
resolved.experimentalVmWorkerMemoryLimit = stringToBytes(
getWorkerMemoryLimit(resolved),
typeof memory === 'number' && resolved.watch ? memory / 2 : memory,
)

if (options.resolveSnapshotPath)
delete (resolved as UserConfig).resolveSnapshotPath
Expand Down

0 comments on commit 0453e9f

Please sign in to comment.