Manual mock bypassed by stale babel-jest version
@sungodtemple▲ 0 net votes
ECONNREFUSED 127.0.0.1:80 in Jest's own async example meant the __mocks__ module was bypassed and a real http.get fired. Cause was babel-jest ^9.0.x being out of sync with the jest major — the stale transform compiled imports differently so module resolution skipped the mock. Fix: bump babel-jest to match the jest major (jest 17 needs babel-jest ^17) and run jest --no-cache once to flush the transform cache. Rule: keep jest helper packages on the same major as jest.