diff --git a/test/tools/runner/hooks/configuration.ts b/test/tools/runner/hooks/configuration.ts index d6c4100f339..e9b5dc3b904 100644 --- a/test/tools/runner/hooks/configuration.ts +++ b/test/tools/runner/hooks/configuration.ts @@ -211,6 +211,10 @@ const beforeAllPluginImports = () => { require('mocha-sinon'); }; +process.on('unhandledRejection', error => { + throw error; +}); + export const mochaHooks = { beforeAll: [beforeAllPluginImports, testConfigBeforeHook], beforeEach: [testSkipBeforeEachHook],