@jest/types
30.5.1 · 1 Sep 2026MIT190.3M / weekRepositoryHomepagenpmAtom feed
29.6.3 is the newest release of 29.x.
In short
7 new7 fixed
Release note
Features
expect, @jest/expect: Support type inference for function parameters in
CalledWithassertionsexpect, @jest/expect: Infer type of
*ReturnedWithmatchers argument@jest/environment, jest-runtime: Allow
jest.requireActualandjest.requireMockto take a type argument@jest/environment: Allow
jest.mockandjest.doMockto take a type argument@jest/fake-timers: Add
jest.now()to return the current fake clock time (#13244, #13246)@jest/mock: Add
withImplementationmethod for temporarily overriding a mockexpect: Export
toThrow*matchers
Fixes
jest-circus, jest-jasmine2: Fix error messages for Node's
assert.throesjest-haste-map: Remove
__proto__usagejest-mock: Improve
spyOntypings to handle optional propertiesjest-mock: Fix mocking of getters and setters on classes
jest-snapshot: Throw useful error when an array is passed as property matchers
jest-snapshot: Prioritize parser used in the project
jest-transform: Attempt to work around issues with atomic writes on Windows