Skip to content

Commit

Permalink
mocha >= 4.0 correctly reports unhandledRejection on its own
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-briere committed Jul 4, 2023
1 parent 461cd9d commit cc6bd58
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scripts/mocha-bootload.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

process.on('unhandledRejection', function(error) {
console.error('Unhandled Promise Rejection:');
console.error((error && error.stack) || error);
});

process.env.NODE_ENV = 'test';

0 comments on commit cc6bd58

Please sign in to comment.