v29.0.0
Blog post: https://jestjs.io/blog/2022/08/25/jest-29
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)
New Contributors
- @makstech made their first contribution in #13049
- @sa2taka made their first contribution in #13055
- @matheus-rodrigues00 made their first contribution in #13090
- @lanpai made their first contribution in #13094
- @zebreus made their first contribution in #13099
- @backmask made their first contribution in #13106
- @liuxingbaoyu made their first contribution in #13120
- @Trim made their first contribution in #13128
- @kkyusufk made their first contribution in #13142
- @KrishnaPG made their first contribution in #13157
- @dev-itsheng made their first contribution in #13115
- @jeffslofish made their first contribution in #13166
Full Changelog: v28.1.3...v29.0.0