@jest/transform
30.5.2 · 18 Sep 2026MIT80.4M / weekRepositoryHomepagenpmAtom feed
In short
24 new2 faster11 fixed17 internal
Release note
Features
expect: Highlight substring differences when matcher fails, part 1
expect: Highlight substring differences when matcher fails, part 2
expect: Improve report when mock-spy matcher fails, part 1
expect: Improve report when mock-spy matcher fails, part 2
expect: Improve report when mock-spy matcher fails, part 3
expect: Improve report when mock-spy matcher fails, part 4
expect: Throw matcher error when received cannot be jasmine spy
expect: Improve report when negative CalledWith assertion fails
expect: Improve report when positive CalledWith assertion fails
expect: Display equal values for ReturnedWith similar to CalledWith
expect, jest-snapshot: Change color from green for some args in matcher hints
jest-snapshot: Highlight substring differences when matcher fails, part 3
jest-core: Improve report when snapshots are obsolete
jest-cli: Improve chai support (with detailed output, to match jest exceptions)
*: Manage the global timeout with
--testTimeoutcommand line argument.pretty-format: Render custom displayName of memoized components
jest-validate: Allow
maxWorkersas part of thejest.config.jsjest-runtime: Allow passing configuration objects to transformers
@jest/core, @jest/test-sequencer: Support async sort in custom
testSequencerjest-runtime, @jest/fake-timers: Add
jest.advanceTimersToNextTimer@jest-transform: Extract transforming require logic within
jest-coreinto@jest-transformjest-matcher-utils: Add color options to
matcherHintjest-circus/jest-jasmine2: Give clearer output for Node assert errors
jest-runner: Export all types in the type signature of
jest-runner
Fixes
jest-cli: Detect side-effect only imports when running
--onlyChangedor--changedSincejest-cli: Allow
--maxWorkersto work with % input againbabel-plugin-jest-hoist: Expand list of whitelisted globals in global mocks
jest-core: Make watch plugin initialization errors look nice
jest-snapshot: Prevent inline snapshots from drifting when inline snapshots are updated
jest-haste-map: Don't throw on missing mapper in Node crawler
jest-core: Fix incorrect
passWithNoTestswarningjest-snapshots: Fix test retries that contain snapshots
jest-mock: Fix incorrect assignments when restoring mocks in instances where they originally didn't exist
expect: Fix stack overflow when matching objects with circular references
jest-haste-map: Workaround a node >=12.5.0 bug that causes the process not to exit after tests have completed and cancerous memory growth
Performance
jest-watcher: Minor optimization for JestHook
@jest/reporters: Prevent runaway CPU useage with
--notifyon macOS