A platform for community discussion. Free, open, simple.
DEV: logs tests exception when running qunit on headless chrome (#7553)
Joffrey JAFFEUXea214b2b0c7a
diff --git a/test/run-qunit.js b/test/run-qunit.jsindex e1588373088..311317a1334 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;