diff --git a/test/test/boot.js b/test/test/boot.js index eff2eabb52..52e94cd74f 100644 --- a/test/test/boot.js +++ b/test/test/boot.js @@ -352,8 +352,10 @@ function configureJasmineEnvironment() { await loadNodeModules(); // Replace jasmine's global error handler, since we have our own more - // nuanced version. - window.onerror = null; + // nuanced version. You can't set this to null, since jasmine still tries + // to call it. Note also that our handler uses window.addEventListener + // instead of window.onerror. + window.onerror = () => {}; }); const originalSetTimeout = window.setTimeout;