Merge pull request #1421 from jakeherp/patch-1

This commit is contained in:
Rico Sta. Cruz 2020-06-17 23:24:06 +10:00 committed by GitHub
commit 4dbdd73c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -124,8 +124,12 @@ See: [expect()](http://facebook.github.io/jest/docs/en/expect.html#expectvalue)
```js
expect(value)
.toMatchSnapshot()
.toMatchInlineSnapshot()
```
Note that `toMatchInlineSnapshot()` requires Prettier to be set up for the project.
See: [Inline snapshots](https://jestjs.io/docs/en/snapshot-testing#inline-snapshots)
### Errors
```js