Skip to content

Commit ff7e984

Browse files
committed
test: set maxWorkers for jest to prevent freezes
This sets the maxWorkers in the Jest config to prevent accidental computer lock-ups/freezes when running tests, because the default is using the maximum of available resources.
1 parent c17f30c commit ff7e984

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ module.exports = {
1616
transformIgnorePatterns: [
1717
'<rootDir>/node_modules/(?!(@patternfly/react-core/|@patternfly/react-icons/|@redhat-cloud-services|@openshift|lodash-es|@patternfly/react-table|@patternfly/react-tokens|p-all)).*$',
1818
],
19+
maxWorkers: 4,
1920
};

0 commit comments

Comments
 (0)