From 33ad8c3ba87f8a2a893b6584b5c52488819330c2 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Thu, 25 Aug 2022 14:01:53 +0200 Subject: [PATCH] docs: Jest 29 blog post (#13103) --- website/blog/2022-08-25-jest-29.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 website/blog/2022-08-25-jest-29.md diff --git a/website/blog/2022-08-25-jest-29.md b/website/blog/2022-08-25-jest-29.md new file mode 100644 index 000000000000..e8014f818388 --- /dev/null +++ b/website/blog/2022-08-25-jest-29.md @@ -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. + + + +The only breaking changes that should be noticable 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 + +There are certain changes to the types exposed by Jest, but probably (hopefully!) nothing that should impede the upgrade. 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](https://github.com/facebook/jest/blob/main/CHANGELOG.md#2900) for other changes. + +Thanks for reading, and happy Jesting! 🃏