DEV: logs tests exception when running qunit on headless chrome (#7553)

DEV: logs tests exception when running qunit on headless chrome (#7553)

diff --git a/test/run-qunit.js b/test/run-qunit.js
index e158837..311317a 100644
--- a/test/run-qunit.js
+++ b/test/run-qunit.js
@@ -53,6 +53,10 @@ async function runAllTests() {
 
   await Promise.all([Page.enable(), Runtime.enable()]);
 
+  Runtime.exceptionThrown(exceptionInfo => {
+    console.log(exceptionInfo.exceptionDetails.exception.description);
+  });
+
   Runtime.consoleAPICalled(response => {
     const message = response["args"][0].value;

GitHub sha: ea214b2b

1 Like