babel-jest
30.5.2 · 18 Sep 2026MIT71.6M / weekRepositoryHomepagenpmAtom feed
24.9.0 is the newest release of 24.x.
In short
1 removed1 security14 new1 faster16 fixed18 internal
- removed
expect: Remove duck typing and obsolete browser support code when comparing DOM nodes and use DOM-Level-3 API instead
- security
jest-cli: Fix prototype pollution vulnerability in dependency
Release note
We skipped 24.2.0 because a draft was accidentally published. Please use 24.3.0 or a newer version instead.
Features
: Improve report when matcher fails, part 10
: Improve report when matcher fails, part 11
: Improve report when matcher fails, part 12
: Improve report when matcher fails, part 7
: Improve report when matcher fails, part 8
: Improve report when matcher fails, part 9
jest-circus/jest-jasmine2: Warn if describe returns a value
jest-config: Print error information on preset normalization error
jest-get-type: Add
isPrimitivefunctionjest-haste-map: Add
skipPackageJsonoptionjest-util: Add
isPromisepretty-format: Support
React.memo
Fixes
expect: Fix
toStrictEqualnot considering arrays with objects having undefined values correctlyexpect: Fix custom async matcher stack trace
expect: Fix non-object received value in toHaveProperty (#7986, #8067)
expect: Fix non-symmetric equal for Number
- removed
expect: Remove duck typing and obsolete browser support code when comparing DOM nodes and use DOM-Level-3 API instead
jest-changed-files: Fix
getChangedFilesFromRootsto not return parts of the commit messages as if they were files, when the commit messages contained multiple paragraphsjest-changed-files: Fix pattern for HG changed files
jest-changed-files: Improve default file selection for Mercurial repos
jest-circus: Fix bug with test.only
: Throw explicit error when errors happen after test is considered complete
- security
jest-cli: Fix prototype pollution vulnerability in dependency
jest-cli: Refactor
-oand--coveragecombinedjest-environment-node: Add missing globals: TextEncoder and TextDecoder
jest-haste-map: Enforce uniqueness in names (mocks and haste ids)
: Throw explicit error when errors happen after test is considered complete
jest-mock: Adds a type check to
prototypeto allow mocks of objects with a primitiveprototypeproperty.jest-transform: Normalize config and remove unnecessary checks, convert
TestUtils.jsto TypeScriptMake sure to not fail if unable to assign
toStringTagto theprocessobject, which is read only in Node 12jest-validate: Fix validating async functions
jest-worker: Fix
jest-workerwhen using pre-allocated jobsstatic: Remove console log '-' on the front page
Performance
jest-haste-map: Optimize haste map tracking of deleted files with Watchman.