This seems a bit weird to me. I\'m trying to test an actual (ie. real network) request with Jest.
These are the tested scenarios:
It can be a Jest configuration issue. I solved forcing "node" as jest environment in package.json:
"jest": { "testEnvironment": "node" }
see docs: https://facebook.github.io/jest/docs/configuration.html#testenvironment-string