diff --git a/CHANGELOG.md b/CHANGELOG.md index 457da1fd06b0..c622bdf254bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - `[jest-leak-detector]` Wait properly for GC runs due to changes in Node 14.7 ([#10366](https://github.com/facebook/jest/pull/10366)) - `[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 diff --git a/docs/SnapshotTesting.md b/docs/SnapshotTesting.md index 76e19aa36f82..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 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 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