Skip to content

Commit

Permalink
chore: add mention of snapshot format change in upgrade guide (#13038)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 17, 2022
1 parent c91dbcf commit 16d7cac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/UpgradingToJest29.md
Expand Up @@ -14,3 +14,16 @@ See [changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md#2900) fo
## Compatibility

The supported Node versions are 14.15, 16.10, 18.0 and above.

## Snapshot format

As announced in the [Jest 28 blog post](/blog/2022/04/25/jest-28#future), Jets 29 has changed the default snapshot formatting to `{escapeString: false, printBasicPrototype: false}`.

If you want to keep the old behavior, you can set the `snapshotFormat` property to:

```diff
+ snapshotFormat: {
+ escapeString: true,
+ printBasicPrototype: true
+ }
```

0 comments on commit 16d7cac

Please sign in to comment.