reqwest
reqwest copied to clipboard
reqwest promise with Nock
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
try manual mock the reqwest module to your one. http://facebook.github.io/jest/docs/en/manual-mocks.html#content