v29.2.0
版本发布时间: 2022-10-14 17:15:09
jestjs/jest最新发布版本:v30.0.0-alpha.6(2024-08-08 15:46:22)
Features
-
[@jest/cli, jest-config]
A seed for the test run will be randomly generated, or set by a CLI option (#13400) -
[@jest/cli, jest-config]
--show-seed
will display the seed value in the report, and can be set via a CLI flag or through the config file (#13400) -
[jest-config]
AddreadInitialConfig
utility function (#13356) -
[jest-core]
AllowtestResultsProcessor
to be async (#13343) -
[@jest/environment, jest-environment-node, jest-environment-jsdom, jest-runtime]
AddgetSeed()
to thejest
object (#13400) -
[expect, @jest/expect-utils]
AllowisA
utility to take a type argument (#13355) -
[expect]
ExposeAsyncExpectationResult
andSyncExpectationResult
types (#13411)
Fixes
-
[babel-plugin-jest-hoist]
IgnoreTSTypeQuery
when checking for hoisted references (#13367) -
[jest-core]
FixdetectOpenHandles
false positives for some special objects such asTLSWRAP
(#13414) -
[jest-mock]
Fix mocking of getters and setters on classes (#13398) -
[jest-reporters]
Revert: Transform file paths into hyperlinks (#13399) -
[@jest/types]
Infer type ofeach
table correctly when the table is a tuple or array (#13381) -
[@jest/types]
Rework typings to allow the*ReturnedWith
matchers to be called with no argument (#13385)
Chore & Maintenance
-
[*]
Update@babel/*
deps, resulting in slightly different stack traces foreach
(#13422)
Performance
-
[jest-runner]
Do not instrument v8 coverage data if coverage should not be collected (#13282)
New Contributors
- @johannessjoberg made their first contribution in https://github.com/facebook/jest/pull/13343
- @mitchhentgesspotify made their first contribution in https://github.com/facebook/jest/pull/13282
- @Methuselah96 made their first contribution in https://github.com/facebook/jest/pull/13409
- @jhwang98 made their first contribution in https://github.com/facebook/jest/pull/13400
- @professorjrod made their first contribution in https://github.com/facebook/jest/pull/13418
- @jesusarell made their first contribution in https://github.com/facebook/jest/pull/13407
Full Changelog: https://github.com/facebook/jest/compare/v29.1.2...v29.2.0