2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-20 18:52:44 +08:00

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

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;