Skip to content

chore(deps): update dependency jest-fetch-mock to v3.2.0#113

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/jest-fetch-mock-3.x
Jul 8, 2026
Merged

chore(deps): update dependency jest-fetch-mock to v3.2.0#113
renovate[bot] merged 1 commit into
mainfrom
renovate/jest-fetch-mock-3.x

Conversation

@renovate

@renovate renovate Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
jest-fetch-mock 3.0.33.2.0 age confidence

Release Notes

jefflau/jest-fetch-mock (jest-fetch-mock)

v3.2.0

First release since 3.0.3 (March 2020). Everything merged to master in the intervening years ships in this release, plus a round of new fixes. Version 3.1.0 was tagged in 2024 but never published to npm; its contents are included here.

Added
  • Pass a Response object directly to mockResponse, mockResponseOnce, once, mockResponses and the conditional mocking functions — including responses with binary (Buffer) bodies (#​223, thanks @​alexkolson)
  • Response functions can return a Response object (sync or async)
  • URL objects (and anything else with a toString) accepted as fetch input (#​193)
  • Mock redirected responses via the counter param in response init (#​168)
  • Response functions may be synchronous — no need to return a promise (#​145)
  • engines field declaring the Node >= 12 floor (required by the domexception dependency)
Fixed
  • TypeScript definitions no longer import NodeJS.Global, which was removed from @types/node — types now work with modern @types/node/TypeScript setups (#​184, #​201, #​248)
  • dontMockIf/dontMockOnceIf predicates now receive the fully-constructed Request (method, headers from the init argument), matching doMockIf behavior
  • fetch() called with an already-aborted signal now rejects (as per the fetch spec) instead of throwing synchronously, so it can be caught with .catch() (#​237)
  • fetch.isMocking returns a plain boolean again after resetMocks() (#​183)
  • DOMException is polyfilled in Node environments, fixing mockAbort under jest-environment-node (#​159)
  • TypeScript: mockIf/doMockIf callbacks may return synchronously (#​220)
Changed
  • TypeScript: fetch's input argument is now required, matching the DOM signature (#​206, #​207)
  • cross-fetch floor raised to ^3.1.8 (security fixes in transitive node-fetch) (#​228, #​249)
  • The npm tarball no longer ships tooling configs, workflow files, or type-test files
  • npm publishing now happens via GitHub Actions trusted publishing with provenance
  • The promise-polyfill dependency was removed — unreachable code on Node ≥ 12, which the engines field declares
Internal
  • Test suite grown from 64 to 98 tests with coverage thresholds enforced on every run (99% statements / 98% branches)
  • New integration/ suite: six consumer fixtures (jsdom, React + Testing Library, TypeScript strict, node native-fetch host, Jest 30, and a real-HTTP-server passthrough e2e) run against the packed tarball in CI and gate every release
  • Implementation compressed (~10% smaller) with no API changes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot merged commit 3f7cfb8 into main Jul 8, 2026
5 checks passed
@renovate renovate Bot deleted the renovate/jest-fetch-mock-3.x branch July 8, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants