v29.1.0
Features
[expect, @jest/expect]
support type inference for function parameters inCalledWith
assertions (#13268)[expect, @jest/expect]
Infer type of*ReturnedWith
matchers argument (#13278)[@jest/environment, jest-runtime]
Allowjest.requireActual
andjest.requireMock
to take a type argument (#13253)[@jest/environment]
Allowjest.mock
andjest.doMock
to take a type argument (#13254)[@jest/fake-timers]
Addjest.now()
to return the current fake clock time (#13244, #13246)[@jest/mock]
AddwithImplementation
method for temporarily overriding a mock (#13281)[expect]
ExporttoThrow*
matchers (#13328)
Fixes
[jest-circus, jest-jasmine2]
Fix error messages for Node'sassert.throes
(#13322)[jest-haste-map]
Remove__proto__
usage (#13256)[jest-mock]
ImprovespyOn
typings to handle optional properties (#13247)[jest-mock]
Fix mocking of getters and setters on classes (#13145)[jest-snapshot]
Throw useful error when an array is passed as property matchers (#13263)[jest-snapshot]
Prioritize parser used in the project (#13323)[jest-transform]
Attempt to work around issues with atomic writes on Windows (#11423)
New Contributors
- @fzn0x made their first contribution in #13234
- @guimard made their first contribution in #13256
- @weidehai made their first contribution in #13270
- @kettanaito made their first contribution in #12871
- @royhadad made their first contribution in #13279
- @ghiscoding made their first contribution in #13290
- @paulreece made their first contribution in #13311
- @jeppester made their first contribution in #13281
- @sashashura made their first contribution in #13324
- @lpizzinidev made their first contribution in #13322
- @JVBorges made their first contribution in #13323
- @staplespeter made their first contribution in #13145
Full Changelog: v29.0.3...v29.1.0