Intercepting msw calls in cypress #805
Replies: 1 comment 9 replies
-
Hey, @d-ivashchuk. Thank you for the feedback! As far as I know MSW doesn't encourage stubbing both conceptually and implementation-wise, so for a request to be captured by MSW it must actually happen (you should see it in the "Network" tab of your dev tools just as any other request). Service Worker API can only intercept actual requests. I'd suggest dropping |
Beta Was this translation helpful? Give feedback.
-
Hey @kettanaito! I've finally been able to use your amazing library and I must say it's just fabulous DX!
I can't get something working though. I have setup couple of handlers for couple of the routes:
And everything works perfectly, but I want to intercept these calls in cypress. Using something like this:
No luck so far, it just doesn't react although I have the call logs from MSW in console within cypress browser. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions