jest-mock
30.5.2 · 18 Sep 2026MIT94.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jest-mock From 27.2.5 to 27.5.1
7 releases in betweenevery note read
Release by release
- New
jest-config: Support comments in JSON config file
- New
pretty-format: Expose
ConvertAnsiplugin - New
expect: Add type definitions for asymmetric
closeTomatcher - Fixed
jest-cli: Load binary via exported API
- Fixed
jest-config: Replace
jsonlintwithparse-json - Fixed
- New
- New
expect: Add asymmetric matcher
expect.closeTo - New
jest-mock: Added
mockFn.mock.lastCallto retrieve last argument - New
expect: Add a fix for
.toHaveProperty('') - New
@jest/globals: Add missing
optionsargument tojest.doMocktyping
- New
- New
jest-environment-node: Add
AbortSignal - New
jest-environment-node: Add Missing node global
performance - New
jest-configperf: only register ts-node once when loading TS config files - Fixed
jest-runtime: Handle missing
mockedproperty
- New
- New
jest-worker: Add additional
execArgvto filter
- New
- Fixed
jest-worker: Filter
execArgvcorrectly
- Fixed
- New
expect: Enhancing the
toHavePropertymatcher to support array selection - New
jest-core: Add support for
testResultsProcessorwritten in ESM - New
jest-diff, pretty-format: Add
compareKeysoption for custom sorting of object keys - New
jest-mock: Add
ts-jestmock util functions
- New
- New
jest-config: Add
testEnvironmentOptions.htmlto apply to jsdom input - New
jest-resolver: Support default export (
.) inexportsfield ifmainis missing - Fixed
expect: Tweak and improve types
- Fixed
jest-runtime: Ensure absolute paths can be resolved within test modules
- Fixed
jest-runtime: Fix
instanceofforModernFakeTimersandLegacyFakeTimersmethods
- New
7 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.