Intercept with service worker (msw) #14390
Unanswered
hedleygois
asked this question in
Questions and Help
Replies: 1 comment
-
@hedleygois Check this out, might help I have prepared a React + Vite boilerplate which includes integration of MSW with Vitest and Cypress. This allows to easily test an application with mocked responses. What's included ? Repo Please give it a ⭐️ if it helped. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using https://mswjs.io/ to provide some data and cypress to test my application. The problem is that
cy.intercept
does not seem to fire. The requests are always hitting the service worker even if I useforceNetworkError
, in fact, even if I use a function it won't fire. Is there a way to handle these scenarios where there's a SW?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions