Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix description
  • Loading branch information
genintho committed Feb 3, 2018
commit c5fe774b9e93913883f9563b28565c2c66e1bb07
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
* `[jest-cli]` `--changedSince`: allow selectively running tests for code
changed since arbitrary revisions.
([#5312](https://github.com/facebook/jest/pull/5312))
>>>>>>> upstream/master

## jest 22.1.3

Expand Down
8 changes: 4 additions & 4 deletions docs/SnapshotTesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ modifying the `Link` component, and running Jest.

#### Interactive Updates

Snapshots can also be updated one at a time in the Jest watch mode:
The snapshots of one test file can be updated in the Jest watch mode:

![](/jest/img/content/interactiveSnapshot.png)

Once you enter the Interactive Snapshot Updates mode, Jest will walk you though
the failed snapshots one at a time and give you an opportunity to review the
failed output.
the failed snapshots of one test file at a time and give you an opportunity to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's an extra "of" here - should be:

Jest will walk you through the failed snapshots one test file at a time...

Also though is a typo, should be through

review the failed output.

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

![](/jest/img/content/interactiveSnapshotUpdate.png)
![](/jest/img/content/interactiveSnapshotUpdate.gif)

### Tests Should Be Deterministic

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`SnapshotInteractiveMode updateWithResults overlay handle progress UI 1`

<bold>Watch Usage</>
<dim> › Press </>u<dim> to update failing snapshots for this test.</>
<dim> › Press </>s<dim> to skip the current snapshot.</>
<dim> › Press </>s<dim> to skip the current test file.</>
<dim> › Press </>q<dim> to quit Interactive Snapshot Update Mode.</>
<dim> › Press </>Enter<dim> to trigger a test run.</>
"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/src/snapshot_interactive_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class SnapshotInteractiveMode {
this._testFilePaths.length > 1
? chalk.dim(' \u203A Press ') +
's' +
chalk.dim(' to skip the current snapshot.')
chalk.dim(' to skip the current test file.')
: '',

chalk.dim(' \u203A Press ') +
Expand Down