title: Jest
category: JavaScript libraries
layout: 2017/sheet
-updated: 2017-09-01
+updated: 2020-06-17
weight: -3
tags: [Featurable]
intro: |
```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