Added inline snapshots to Jest
This commit is contained in:
parent
cb4e03077f
commit
6da706b706
4
jest.md
4
jest.md
|
@ -115,8 +115,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
|
||||||
|
|
Loading…
Reference in New Issue