From 89e154b39e3a65b933f127ecabf9708f82f773d0 Mon Sep 17 00:00:00 2001 From: Eandalf7h Date: Fri, 30 Sep 2022 04:58:24 +0800 Subject: [PATCH] mocha >= 4.0 correctly reports unhandledRejection on its own https://github.com/mochajs/mocha/issues/2879 --- scripts/mocha-bootload.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/mocha-bootload.js b/scripts/mocha-bootload.js index 084f665..ad11cd7 100644 --- a/scripts/mocha-bootload.js +++ b/scripts/mocha-bootload.js @@ -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';