diff --git a/jest.md b/jest.md index f1527c460..629fb60ea 100644 --- a/jest.md +++ b/jest.md @@ -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