@jest/expect
30.5.2 · 18 Sep 2026MIT58.3M / weekRepositoryHomepagenpmAtom feed
29.7.0 is the newest release of 29.x.
In short
4 new4 fixed
Release note
Features
expect: Update
toThrow()to be able to use errorcausesjest-core: Allow to use
workerIdleMemoryLimitwith only 1 worker orrunInBandoptionjest-message-util: Add support for error
causes (#13868 & #13912)jest-runtime: Revert
import assertionsfor JSON modules as it's been relegated to Stage 2
Fixes
@jest/expect-utils:
subsetEqualityshould consider also an object's inherited string keysjest-mock: Clear mock state when
jest.restoreAllMocks()is calledjest-mock: Prevent
mockImplementationOnceandmockReturnValueOncebleeding intowithImplementationjest-mock: Do not restore mocks when
jest.resetAllMocks()is called