Merge pull request #16027 from backstage/rugvip/workers

cli: additional fix for worker memory limits to make sure it's always applied by default
This commit is contained in:
Patrik Oldsberg
2023-01-30 14:49:54 +01:00
committed by GitHub
3 changed files with 90 additions and 18 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.