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
+4
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