jest v29.0.0 Release Notes
-
π Features
- π₯
[expect]
[BREAKING] Differentiate betweenMatcherContext
MatcherUtils
andMatcherState
types (#13141) - β
[jest-circus]
Add support fortest.failing.each
(#13142) - π₯
[jest-config]
[BREAKING] MakesnapshotFormat
default toescapeString: false
andprintBasicPrototype: false
(#13036) - π₯
[jest-config]
[BREAKING] Remove undocumentedcollectCoverageOnlyFrom
option (#13156) - π₯
[jest-environment-jsdom]
[BREAKING] Upgrade tojsdom@20
(#13037, #13058) - π€‘
[@jest/globals]
Addjest.Mocked
,jest.MockedClass
,jest.MockedFunction
andjest.MockedObject
utility types (#12727) - π₯
[jest-mock]
[BREAKING] RefactorMocked*
utility types.MaybeMockedDeep
andMaybeMocked
becameMocked
andMockedShallow
respectively; only deep mocked variants ofMockedClass
,MockedFunction
andMockedObject
are exported (#13123, #13124) - π₯
[jest-mock]
[BREAKING] Change the defaultjest.mocked
helperβs behavior to deep mocked (#13125) - π₯
[jest-snapshot]
[BREAKING] Letbabel
find config when updating inline snapshots (#13150) - π₯
[@jest/test-result, @jest/types]
[BREAKING] ReplaceBytes
andMilliseconds
types withnumber
(#13155) - π·
[jest-worker]
AddsworkerIdleMemoryLimit
option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#13056, #13105, #13106, #13107) - π₯
[pretty-format]
[BREAKING] RemoveConvertAnsi
plugin in favour ofjest-serializer-ansi-escapes
(#13040) [pretty-format]
Allow to opt out from sorting object keys withcompareKeys: null
(#12443)
π Fixes
- β
[jest-config]
Fix testing multiple projects with TypeScript config files (#13099) [@jest/expect-utils]
Fix deep equality of ImmutableJS Record (#13055)[jest-haste-map]
Increase the maximum possible file size that jest-haste-map can handle (#13094)- π¦
[jest-runtime]
Properly support CJS re-exports from dual packages (#13170) [jest-snapshot]
MakeprettierPath
optional inSnapshotState
(#13149)- π
[jest-snapshot]
Fix parsing error from inline snapshot files withJSX
(#12760) - π·
[jest-worker]
When a process runs out of memory worker exits correctly and doesn't spin indefinitely (#13054)
π§ Chore & Maintenance
[*]
[BREAKING] Drop support for Node v12 and v17 (#13033)- π
[docs]
Fix webpack name (#13049) - π
[docs]
Explicit how to setn
for--bail
(#13128) - β‘οΈ
[docs]
Update Enzyme URL (#13166) - π
[jest-leak-detector]
Remove support forweak-napi
(#13035) - π₯
[jest-snapshot]
[BREAKING] RequirerootDir
as argument toSnapshotState
(#13150)
- π₯