@User The end goal is to be able to do something in the line of
https://www.npmjs.com/package/cypress-fail-on-console-error, but with:
* Cypress logging of what the calls were
* A sort of global configuration (like registering which console levels are to be checked + excludedMessages per level) , but additionally also a per test configuration that extends on the global one
I have something that seems to be working now, although some of the things are a bit... hacky it feels to me as I use the mocha test context (mostly because not all events seem to have straight access to the context through
this
). I could send you the full code I have now if you'd like (might be a bit long here)