This novel workaround simply hides any command log entries that originate from fetch/XHR requests.
While I've updated this receipe for Cypress 10 and converted it to TypeScript you should be able to use it in a JavaScript project by ignoring the cypress.d.ts
file and placing the snippet from e2e.ts
in e2e.js
instead.
This library would've been great if didn't permit the log messages' markup to render at all (in my scenario I have many requests coming in, almost never ending, which causes the host OS to run out of memory (which just causes cypress to crash)).Nevermind comment - Just realized your plugin is for filtering ('live') but not necessarily preventing the markup rendering.
Thanks for sharing!