jest-cli v29.2.0 Release Notes
-
🔋 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)
- 👀