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:
I resolved it by adding
axios.defaults.adapter = require('axios/lib/adapters/http');
for a specific test case file, as setting global.XMLHttpRequest = undefined or env=node was causing my other test cases to fail.