Skip to content

Update dependency jest-fetch-mock to v3.2.0#507

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

Update dependency jest-fetch-mock to v3.2.0#507
renovate[bot] merged 1 commit into
mainfrom
renovate/jest-fetch-mock-3.x

Conversation

@renovate

@renovate renovate Bot commented Jul 11, 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
    • "every weekend"
  • Automerge
    • "after 8pm and before 8am every weekday,every weekend"

🚦 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 force-pushed the renovate/jest-fetch-mock-3.x branch from adb5c4f to 4ec979e Compare July 11, 2026 08:52
@renovate renovate Bot merged commit 0f4a38d into main Jul 11, 2026
8 checks passed
@renovate renovate Bot deleted the renovate/jest-fetch-mock-3.x branch July 11, 2026 13:42
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