https://cypress.io logo
I dont think you can accomplish this with Cypress ...
# e2e-testing
f
I dont think you can accomplish this with Cypress alone because cy.intercept looks for client side requests. We lean on MSW for mocking server side. https://mswjs.io/ You can then use a Cypress fixture to feed the MSW response and the same fixture validate client side if you need to.