-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to mock when using isomorphic-fetch #41
Comments
I don't see where isomorphic fetch is being required in your code. Have you pushed all your files to github? |
the |
here https://github.com/vyorkin-play/fetch-mock-example/blob/master/webpack.config.js#L30. I did it this way because the readme says:
|
I'll add some clearer usage guides to the docs sometime |
thanks @wheresrhys! got it working, btw I think I've found a typo here, as I can see it returns an object (not array) if no argument is given: https://github.com/wheresrhys/fetch-mock/blob/master/README.md#callsmatcher |
Here is a minimal repo to reproduce the issue (there is an
npm test
task). I just can't intercept the request. The example is almost the same as the first one from README. Here is the karma ouput:The text was updated successfully, but these errors were encountered: