v29.1.0
版本发布时间: 2022-09-28 15:38:40
jestjs/jest最新发布版本:v30.0.0-alpha.6(2024-08-08 15:46:22)
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 https://github.com/facebook/jest/pull/13234
- @guimard made their first contribution in https://github.com/facebook/jest/pull/13256
- @weidehai made their first contribution in https://github.com/facebook/jest/pull/13270
- @kettanaito made their first contribution in https://github.com/facebook/jest/pull/12871
- @royhadad made their first contribution in https://github.com/facebook/jest/pull/13279
- @ghiscoding made their first contribution in https://github.com/facebook/jest/pull/13290
- @paulreece made their first contribution in https://github.com/facebook/jest/pull/13311
- @jeppester made their first contribution in https://github.com/facebook/jest/pull/13281
- @sashashura made their first contribution in https://github.com/facebook/jest/pull/13324
- @lpizzinidev made their first contribution in https://github.com/facebook/jest/pull/13322
- @JVBorges made their first contribution in https://github.com/facebook/jest/pull/13323
- @staplespeter made their first contribution in https://github.com/facebook/jest/pull/13145
Full Changelog: https://github.com/facebook/jest/compare/v29.0.3...v29.1.0