reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

reqwest promise with Nock

Open dsun29 opened this issue 8 years ago • 1 comments

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

dsun29 avatar Aug 03 '17 15:08 dsun29

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

shiyuwudi avatar Jan 02 '18 08:01 shiyuwudi