Packages

@jest/transform

30.5.2 · 18 Sep 2026MIT80.4M / weekRepositoryHomepagenpmAtom feed

Your version

24.9.0

16 Aug 2019Where it was published

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 --testTimeout command line argument.

  • pretty-format: Render custom displayName of memoized components

  • jest-validate: Allow maxWorkers as part of the jest.config.js

  • jest-runtime: Allow passing configuration objects to transformers

  • @jest/core, @jest/test-sequencer: Support async sort in custom testSequencer

  • jest-runtime, @jest/fake-timers: Add jest.advanceTimersToNextTimer

  • @jest-transform: Extract transforming require logic within jest-core into @jest-transform

  • jest-matcher-utils: Add color options to matcherHint

  • jest-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 --onlyChanged or --changedSince

  • jest-cli: Allow --maxWorkers to work with % input again

  • babel-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 passWithNoTests warning

  • jest-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 --notify on macOS