jest-util
30.5.1 · 1 Sep 2026MIT156.2M / weekRepositoryHomepagenpmAtom feed
29.7.0 is the newest release of 29.x.
In short
11 breaking4 new7 fixed4 internal
- breaking
expect: Differentiate between
MatcherContextMatcherUtilsandMatcherStatetypes - breaking
jest-config: Make
snapshotFormatdefault toescapeString: falseandprintBasicPrototype: false - breaking
jest-config: Remove undocumented
collectCoverageOnlyFromoption - breaking
- breaking
- breaking
jest-mock: Change the default
jest.mockedhelper’s behavior to deep mocked - breaking
jest-snapshot: Let
babelfind config when updating inline snapshots - breaking
@jest/test-result, @jest/types: Replace
BytesandMillisecondstypes withnumber
Release note
Blog post: jestjs.io/blog/2022/08/25/jest-29
Features
- breaking
expect: Differentiate between
MatcherContextMatcherUtilsandMatcherStatetypes jest-circus: Add support for
test.failing.each- breaking
jest-config: Make
snapshotFormatdefault toescapeString: falseandprintBasicPrototype: false - breaking
jest-config: Remove undocumented
collectCoverageOnlyFromoption - breaking
jest-environment-jsdom: Upgrade to
jsdom@20(#13037, #13058) @jest/globals: Add
jest.Mocked,jest.MockedClass,jest.MockedFunctionandjest.MockedObjectutility types- breaking
jest-mock: Refactor
Mocked*utility types.MaybeMockedDeepandMaybeMockedbecameMockedandMockedShallowrespectively; only deep mocked variants ofMockedClass,MockedFunctionandMockedObjectare exported (#13123, #13124) - breaking
jest-mock: Change the default
jest.mockedhelper’s behavior to deep mocked - breaking
jest-snapshot: Let
babelfind config when updating inline snapshots - breaking
@jest/test-result, @jest/types: Replace
BytesandMillisecondstypes withnumber jest-worker: Adds
workerIdleMemoryLimitoption which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#13056, #13105, #13106, #13107)- breaking
pretty-format: Remove
ConvertAnsiplugin in favour ofjest-serializer-ansi-escapes pretty-format: Allow to opt out from sorting object keys with
compareKeys: null
Fixes
jest-config: Fix testing multiple projects with TypeScript config files
@jest/expect-utils: Fix deep equality of ImmutableJS Record
jest-haste-map: Increase the maximum possible file size that jest-haste-map can handle
jest-runtime: Properly support CJS re-exports from dual packages
jest-snapshot: Make
prettierPathoptional inSnapshotStatejest-snapshot: Fix parsing error from inline snapshot files with
JSXjest-worker: When a process runs out of memory worker exits correctly and doesn't spin indefinitely
Chore & Maintenance
- breaking
*: Drop support for Node v12 and v17
- breaking
jest-snapshot: Require
rootDiras argument toSnapshotState