title: Jest
category: JavaScript libraries
layout: 2017/sheet
-updated: 2017-09-01
+updated: 2020-06-17
weight: -3
tags: [Featurable]
intro: |
See: [test.skip](http://facebook.github.io/jest/docs/en/api.html#testskipname-fn)
+
+### Optional flags
+
+| Flag | Description |
+| --------------------- | ---------------------------------------- |
+| `--coverage` | See a summary of test coverage |
+| `--detectOpenHandles` | See a summary of ports that didn't close |
+| `--runInBand` | Run all tests one after the other |
+
Expect
------
{: .-three-column}
```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