I don't know exactly why this has been introduced and how Puppeteer, Mocha and Mochify should play together in case of an uncaught exception, so I am hesitant to PR with just removing the error emitting, although that did restore the previous (expected too?) behavior.
I ran into some weird behavior on Mochify's side just now. When running the following test suite:
Mochify will stop at the second test case:
whereas Mocha would still continue:
This behavior seems to have been introduced in version 5.6.1 as handling a
pageerror
event will now immediately exit because of this: https://github.com/mantoni/mochify.js/commit/547119aa917298429634da7d21c03b839ddc0ad6#diff-9352d7c807debf0acf1801f179b52ebeR119I don't know exactly why this has been introduced and how Puppeteer, Mocha and Mochify should play together in case of an uncaught exception, so I am hesitant to PR with just removing the error emitting, although that did restore the previous (expected too?) behavior.