Skip to content

Instantly share code, notes, and snippets.

View simenbrekken-visma's full-sized avatar

Simen Brekken simenbrekken-visma

View GitHub Profile
@simenbrekken-visma
simenbrekken-visma / README.md
Created September 24, 2022 06:08 — forked from simenbrekken/README.md
Hide fetch/XHR in Cypress command log

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.