Skip to content

Commit

Permalink
fix: remove extraneous 'console' event
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed May 15, 2023
1 parent 839fceb commit 02b884a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async function _run (outputDir, port, timeout, mode, runner, coverage, callback)
}

// this should be a rare, or impossible event since we intercept console.log
/*
page.on('console', (msg) => {
if (!executionQueue) {
error(`log after end: ${msg.text()}`)
Expand All @@ -79,6 +80,7 @@ async function _run (outputDir, port, timeout, mode, runner, coverage, callback)
}
maybeEnd()
})
*/

page.on('error', (error) => console.error(error))
page.on('pageerror', (error) => console.error(error))
Expand Down

0 comments on commit 02b884a

Please sign in to comment.