NIFI-13086 - set jest maxWorkers to 50% for maven builds to alleviate some resource contention (#8689)

* NIFI-13086 - set jest maxWorkers to 50% for maven builds to alleviate some resource contention

* quoting the maxWorkers value

* set maxWorkers in jest.config.ts

* set maxWorkers to 2 for maven builds

This closes #8689
This commit is contained in:
Rob Fellows 2024-04-23 09:45:30 -04:00 committed by GitHub
parent 4b5b7ac2bb
commit 04c6c51aed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@
</goals>
<phase>test</phase>
<configuration>
<arguments>nx test</arguments>
<arguments>nx test --maxWorkers=2</arguments>
<workingDirectory>${frontend.working.dir}</workingDirectory>
</configuration>
</execution>

View File

@ -79,7 +79,7 @@ const config: Config = {
// globals: {},
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
// maxWorkers: "50%",
// maxWorkers: '50%',
// An array of directory names to be searched recursively up from the requiring module's location
// moduleDirectories: [