jest-mock
30.5.2 · 18 Sep 2026MIT94.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jest-mock From 29.1.0 to 29.7.0
17 releases in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 56
- new
- 69
- fixes
Before you upgrade
Tick each one off as you go- Breaking29.6.3
- Breaking29.6.1
Security
- 29.6.0
*: Update
semverdependency to get vulnerability fix
Release by release
- New
create-jest: Add
npm init/yarn createinitialiser for Jest projects - New
jest-validate: Allow deprecation warnings for unknown options
- New
@jest/create-cache-key-function: Cache access of
NODE_ENVandBABEL_ENV - Fixed
jest-resolver: Replace unmatched capture groups in
moduleNameMapperwith empty string instead ofundefined - Fixed
jest-snapshot: Allow for strings as well as template literals in inline snapshots
- Fixed
@jest/test-sequencer: Calculate test runtime if
perStats.durationis missing
- New
- Breaking
jest-mock: Revert #13692 as it was a breaking change
- Fixed
expect, @jest/expect-utils:
ObjectContainingsupportsymbolas key - Fixed
expect: Remove
@types/nodefrom dependencies - Fixed
- Fixed
jest-reporters: Update
istanbul-lib-instrumentdependency to v6. - Fixed
@jest/reporters: Marks Reporter's hooks as optional
- Fixed
jest-runtime: Fix dynamic ESM import module bug when loaded module through
jest.isolateModulesAsync
- Breaking
- New
jest-reporters: Add "skipped" and "todo" symbols to Github Actions Reporter
- Fixed
jest-circus: Fix snapshot matchers in concurrent tests when nr of tests exceeds
maxConcurrency - Fixed
@jest/core: When running global setup and teardown, do not try to change the
messageproperty of the thrown error object when themessageproperty is unwritable - Fixed
jest-snapshot: Move
@types/prettierfromdependenciestodevDependencies - Fixed
jest-snapshot: Throw an explicit error if Prettier v3 is used
- New
- Security
*: Update
semverdependency to get vulnerability fix - New
jest-circus, jest-snapshot: Add support for snapshot matchers in concurrent tests
- New
jest-cli: Include type definitions to generated config files
- New
jest-snapshot: Support arrays as property matchers
- Security
- New
jest-changed-files: Support Sapling
- New
jest-circus, @jest/cli, jest-config: Add feature to randomize order of tests via CLI flag or through the config file
- New
[jest-cli, jest-config, @jest/core, jest-haste-map, @jest/reporters, jest-runner, jest-runtime, @jest/types]AddworkerThreadsconfiguration option to allow using worker threads for parallelization - New
jest-cli: Export
yargsOptions
- New
- New
expect: Update
toThrow()to be able to use errorcauses - New
jest-core: Allow to use
workerIdleMemoryLimitwith only 1 worker orrunInBandoption - New
jest-message-util: Add support for error
causes (#13868 & #13912) - New
jest-runtime: Revert
import assertionsfor JSON modules as it's been relegated to Stage 2
- New
- New
@jest/core: Instrument significant lifecycle events with
performance.mark() - New
jest-circus: Added explicit mention of test failing because
done()is not being called in error message - Fixed
expect, @jest/expect: Provide type of
actualas a generic argument toMatchersto allow better-typed extensions - Fixed
jest-runtime: Handle CJS re-exports of node core modules from ESM
- Fixed
jest-transform: Downgrade
write-file-atomicto v4 - Fixed
jest-worker: Ignore IPC messages not intended for Jest
- New
1 other line we could not sort, mostly version bumps
- 29.2.0
jest-reporters: Transform file paths into hyperlinks
16 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.