From d542ef849fba45b75fd6f4b8885327d0b0edb5d8 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 10 Mar 2020 11:16:54 -0700 Subject: [PATCH] fix(testrunner): handle uncaught errors (#1317) --- utils/testrunner/TestRunner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/testrunner/TestRunner.js b/utils/testrunner/TestRunner.js index 2255336ef1..d5acc498e7 100644 --- a/utils/testrunner/TestRunner.js +++ b/utils/testrunner/TestRunner.js @@ -152,6 +152,7 @@ class TestPass { createTermination.call(this, 'SIGHUP', TestResult.Terminated, 'SIGHUP received'), createTermination.call(this, 'SIGTERM', TestResult.Terminated, 'SIGTERM received'), createTermination.call(this, 'unhandledRejection', TestResult.Crashed, 'UNHANDLED PROMISE REJECTION'), + createTermination.call(this, 'uncaughtException', TestResult.Crashed, 'UNHANDLED ERROR'), ]; for (const termination of terminations) process.on(termination.event, termination.handler);