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

This commit is contained in:
Joffrey JAFFEUX 2019-05-16 08:48:08 +02:00 committed by GitHub
parent a36fe019bb
commit ea214b2b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;