Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix image 404 in the jestjs.io docs #7860

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/SnapshotTesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ it('renders correctly', () => {

In that case, Jest will print this output:

![](/website/static/img/content/failedSnapshotTest.png)
![](https://raw.githubusercontent.com/facebook/jest/master/website/static/img/content/failedSnapshotTest.png)

Since we just updated our component to point to a different address, it's reasonable to expect changes in the snapshot for this component. Our snapshot test case is failing because the snapshot for our updated component no longer matches the snapshot artifact for this test case.

Expand All @@ -84,17 +84,17 @@ You can try out this functionality by cloning the [snapshot example](https://git

Failed snapshots can also be updated interactively in watch mode:

![](/website/static/img/content/interactiveSnapshot.png)
![](https://raw.githubusercontent.com/facebook/jest/master/website/static/img/content/interactiveSnapshot.png)

Once you enter Interactive Snapshot Mode, Jest will step you through the failed snapshots one test at a time and give you the opportunity to review the failed output.

From here you can choose to update that snapshot or skip to the next:

![](/website/static/img/content/interactiveSnapshotUpdate.gif)
![](https://raw.githubusercontent.com/facebook/jest/master/website/static/img/content/interactiveSnapshotUpdate.gif)

Once you're finished, Jest will give you a summary before returning back to watch mode:

![](/website/static/img/content/interactiveSnapshotDone.png)
![](https://raw.githubusercontent.com/facebook/jest/master/website/static/img/content/interactiveSnapshotDone.png)

### Inline Snapshots

Expand Down