mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-09-09 22:49:38 +02:00
Merge pull request #1421 from jakeherp/patch-1
This commit is contained in:
@@ -124,8 +124,12 @@ See: [expect()](http://facebook.github.io/jest/docs/en/expect.html#expectvalue)
|
|||||||
```js
|
```js
|
||||||
expect(value)
|
expect(value)
|
||||||
.toMatchSnapshot()
|
.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
|
### Errors
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Reference in New Issue
Block a user