From 5cf5369fa831232ba703a6abfa82b7a54858c57e Mon Sep 17 00:00:00 2001 From: satyam bansal Date: Tue, 4 Aug 2020 06:15:56 +0530 Subject: [PATCH 1/3] Update Snapshot testing doc Change the mobile app to web app in documentation --- docs/SnapshotTesting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/SnapshotTesting.md b/docs/SnapshotTesting.md index 76e19aa36f82..133392c382c0 100644 --- a/docs/SnapshotTesting.md +++ b/docs/SnapshotTesting.md @@ -5,7 +5,7 @@ title: Snapshot Testing Snapshot tests are a very useful tool whenever you want to make sure your UI does not change unexpectedly. -A typical snapshot test case for a mobile app renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new version of the UI component. +A typical snapshot test case for a web app renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new version of the UI component. ## Snapshot Testing with Jest From a3509191cff89fd29856e76f5e0402cf29211802 Mon Sep 17 00:00:00 2001 From: satyam bansal Date: Tue, 4 Aug 2020 06:21:42 +0530 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ba9036ea887..6367e381a36d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Fixes - `[jest-worker]` Downgrade minimum node version to 10.13 ([#10352](https://github.com/facebook/jest/pull/10352)) +- `[docs]` Update snapshot testing documentation([#10359](https://github.com/facebook/jest/pull/10359)) ### Chore & Maintenance From 17d3a2184201f1e7e072bfb200029a63f9151d3a Mon Sep 17 00:00:00 2001 From: satyam bansal Date: Mon, 10 Aug 2020 13:48:33 +0530 Subject: [PATCH 3/3] Update docs/SnapshotTesting.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Pierzchała --- docs/SnapshotTesting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/SnapshotTesting.md b/docs/SnapshotTesting.md index 133392c382c0..87e3709bbea5 100644 --- a/docs/SnapshotTesting.md +++ b/docs/SnapshotTesting.md @@ -5,7 +5,7 @@ title: Snapshot Testing Snapshot tests are a very useful tool whenever you want to make sure your UI does not change unexpectedly. -A typical snapshot test case for a web app renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new version of the UI component. +A typical snapshot test case renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new version of the UI component. ## Snapshot Testing with Jest