Skip to content

Commit

Permalink
DEV: logs tests exception when running qunit on headless chrome (#7553)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed May 16, 2019
1 parent a36fe01 commit ea214b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/run-qunit.js
Expand Up @@ -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;

Expand Down

0 comments on commit ea214b2

Please sign in to comment.