Skip to content
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

reqwest promise with Nock #266

Open
dsun29 opened this issue Aug 3, 2017 · 1 comment
Open

reqwest promise with Nock #266

dsun29 opened this issue Aug 3, 2017 · 1 comment

Comments

@dsun29
Copy link

dsun29 commented Aug 3, 2017

I tried yesterday to use nock for unit testing in a React/Redux/reqwest application and I was unable to make them work together. Later I had to replace reqwest with fecth. The details of the error can be found in the link below. I don't want to give up reqwest though. Do you guys mind to take a look when you have time?

https://stackoverflow.com/questions/45470427/async-callback-was-not-invoked-within-timeout-nock-reqwest

@shiyuwudi
Copy link

try manual mock the reqwest module to your one. http://facebook.github.io/jest/docs/en/manual-mocks.html#content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants