How to spy on mocked fetch interceptor?
Given the following mock (which is amazing by the way):
How do I spy on it and then check how often it's called?
1 Reply
I've also tried to look through the interceptors API, and this seems to be the closest thing to a spy that I could find, but it doesn't work that way.
Ah it's actually not that hard once you know it 🙂
Mocks + spy combinations are always tricky and really hard to find great examples for most of the time.