-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: 'Jest 29: Snapshot format changes' | ||
author: Simen Bekkhus | ||
authorURL: https://github.com/SimenB | ||
authorImageURL: https://avatars.githubusercontent.com/u/1404810 | ||
--- | ||
|
||
Jest 29 is here, just a few short months after Jest 28. As mentioned in the [Jest 28 blog post](/blog/2022/04/25/jest-28#future), this version contains just a couple of breaking changes, in order to make the upgrade as smooth as possible. | ||
|
||
<!--truncate--> | ||
|
||
The only breaking changes are: | ||
|
||
- Node versions 12 and 17 are dropped, both of which are EOL | ||
- The `snapshotFormat` property is changed to: | ||
|
||
```diff | ||
+ snapshotFormat: { | ||
+ escapeString: false, | ||
+ printBasicPrototype: false | ||
+ } | ||
``` | ||
|
||
- `jest-environment-jsdom` has upgraded `jsdom` from v19 to v20 | ||
|
||
Please see the [upgrade guide](/docs/upgrading-to-jest29) for more details. | ||
|
||
That's it for breaking changes! Hopefully this means the upgrade path from Jest 28 is smooth. Please see the changelog for other changes. | ||
|
||
Thanks for reading, and happy Jesting! 🃏 |