Skip to content

Commit

Permalink
Set max Jest works to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kmjennison committed Jan 23, 2023
1 parent 416d2fd commit ad64ed7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = {
'!**/.storybook/**',
],
coverageDirectory: './coverage/',

// Working around a potential memory leak that's breaking builds:
// "MaxListenersExceededWarning: Possible EventEmitter memory leak detected."
// https://github.com/facebook/jest/issues/7874
maxWorkers: 1,
moduleNameMapper: {
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
},
Expand Down

0 comments on commit ad64ed7

Please sign in to comment.