From e45ebc6d5937db71cd34cfce970d019730bb6755 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Tue, 26 Nov 2024 17:32:08 +0100 Subject: [PATCH] fail tests when having unhandled errors (#234673) --- test/unit/electron/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/electron/renderer.js b/test/unit/electron/renderer.js index b748ae39ee6..9dd1b2174ec 100644 --- a/test/unit/electron/renderer.js +++ b/test/unit/electron/renderer.js @@ -271,7 +271,7 @@ async function loadTests(opts) { } }); - errors.setUnexpectedErrorHandler(err => unexpectedErrorHandler(err)); + errors.setUnexpectedErrorHandler(onUnexpectedError); }); //#endregion