You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intercept the browser fetch API calls as we do now for http(s).request calls.
Reacted by Spain, Michael, Guillaume Vincent, Jonathan Samines, Jaden Dessureault, David Burke, Sahat Yalkabov, Renan Mendes Carvalho, Dmitry Polushkin, Ron Hsu and 70 more
Sorry for ad of other solutions here. I'll definitely switch back to nock later (when it will support fetch) because I really like the API, code quality & docs
Reacted by Fernando Montoya, Ouadie BOUSSAID and Ioan Lucut
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!
Activity
blackxored commentedon Nov 24, 2015
danny-andrews commentedon Dec 4, 2015
judikdavid commentedon Dec 10, 2015
vyorkin commentedon Dec 10, 2015
@danny-andrews @judikdavid @blackxored for now you can use fetch-mock
blackxored commentedon Dec 10, 2015
vyorkin commentedon Dec 10, 2015
Sorry for ad of other solutions here. I'll definitely switch back to nock later (when it will support fetch) because I really like the API, code quality & docs
pgte commentedon Dec 10, 2015
@vyorkin np at all.
I think that a good solution for everyone would be for browserify / webpack to use fetch as the HTTP client backend..
judikdavid commentedon Dec 11, 2015
Yes, I'm also using fetch-mock with webpack, just wanted to switch back to nock.
choonkending commentedon Dec 26, 2015
ciccia commentedon Jan 28, 2016
dmitry commentedon Jan 28, 2016
Any proposals how it should work?
baibonjwa commentedon Mar 21, 2016
jamesfiltness commentedon Mar 27, 2016
11 remaining items
snowmac commentedon Aug 29, 2017
paulmelnikow commentedon Sep 24, 2017
See possible solution using fetch-mock in #591.
changing the recommended library to fetch-mock
changing the recommended library to fetch-mock (#2650)
changing the recommended library to fetch-mock (reduxjs#2650)
stale commentedon Sep 15, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions.
lock commentedon Oct 6, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!