You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a big project with 5000+ tests, and I receive warning:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 501 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
The problem lies within
node_modules/jest-runner-mocha/build/runMocha.js
mocha.addFile(testPath);
var onEnd = function onEnd() {
process.on('exit', function () {
return process.exit();
});
};
I have a big project with 5000+ tests, and I receive warning:
The problem lies within
node_modules/jest-runner-mocha/build/runMocha.js
Without babel, it looks like
Seems like an exit listener is being added for every test file. It looks very suspicious and can possibly be a memory leak too.
Also, I don't understand the meaning of this - exiting in exit does not make sense to me...
The text was updated successfully, but these errors were encountered: