cli: make sure max workers workers are set to at least 2 by default

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-28 15:47:10 +01:00
parent d62ef69d55
commit 312a5d9f30
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/cli': patch
---
The `backstage-cli repo test` command now sets a default Jest `--workerIdleMemoryLimit` of 1GB. This is the recommended workaround for dealing with Jest workers leaking memory and eventually hitting the heap limit.
The `backstage-cli repo test` command now sets a default Jest `--workerIdleMemoryLimit` of 1GB. If needed to ensure that tests are not run in band, `--maxWorkers=2` is set as well. This is the recommended workaround for dealing with Jest workers leaking memory and eventually hitting the heap limit.