Skip to content

Commit

Permalink
add link to test filtering section
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Nov 10, 2023
1 parent 58f00f1 commit 9e1e948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIGRATION.test-runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ If you used storyshots default functionality for DOM snapshot testing, you can u

#### Handling unexpected failing tests

If tests that passed in storyshots fail in the test-runner, it could be because there are uncaught errors in the browser which were not detected correctly in storyshots. The test-runner treats them as failure. If this is the case, use this as an opportunity to review and fix these issues. If these errors are actually intentional (e.g. your story tests an error), then you can tell the test-runner to ignore this particular story instead by defining patterns to ignore via the `testPathIgnorePatterns` configuration. (TODO: Improve this once skipping stories is simpler in the test-runner)
If tests that passed in storyshots fail in the test-runner, it could be because there are uncaught errors in the browser which were not detected correctly in storyshots. The test-runner treats them as failure. If this is the case, use this as an opportunity to review and fix these issues. If these errors are actually intentional (e.g. your story tests an error), then you can tell the test-runner to exclude or skip this particular story instead by using story tags. [Read more about that here](./README.md#filtering-tests-experimental).

#### Snapshot path differences

Expand Down

0 comments on commit 9e1e948

Please sign in to comment.