From 6da706b70678cdbac9a41177ff661063a3ba607a Mon Sep 17 00:00:00 2001 From: Jacob Herper Date: Tue, 5 May 2020 10:25:10 +0100 Subject: [PATCH 1/2] Added inline snapshots to Jest --- jest.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jest.md b/jest.md index e02d1f6ae..5052ec17d 100644 --- a/jest.md +++ b/jest.md @@ -115,8 +115,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 From 75b102fca5d4f3aa43669504168fd82525197038 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Wed, 17 Jun 2020 23:23:34 +1000 Subject: [PATCH 2/2] Update jest.md --- jest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jest.md b/jest.md index 5052ec17d..3dc7b8436 100644 --- a/jest.md +++ b/jest.md @@ -118,8 +118,8 @@ expect(value) .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) +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