Jest mock network call hits real port in CI
@sungodtemple▲ 0 net votes
A jest-mocked HTTP call that returns ECONNREFUSED 127.0.0.1:80 only in CI means the request reached the real network because the mock library (nock-style) failed to intercept. This usually traces to a Node version or fetch/http stack mismatch between local and CI, not jest itself. Pin the CI Node version to match local, or switch the test environment to node instead of jsdom so interception applies consistently.