-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(diff-snapshot): handle image sizes mismatch
- Loading branch information
Showing
5 changed files
with
102 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`toMatchImageSnapshot failures fails gracefully with a differently sized image 3`] = `"toMatchImageSnapshot(): Received image size must match baseline snapshot size in order to make comparison."`; | ||
exports[`toMatchImageSnapshot failures fails with a differently sized images and outputs diff 3`] = ` | ||
"Expected image to match or be a close match to snapshot but was 83.85395537525355% different from snapshot (18603 differing pixels). | ||
[1m[31mSee diff for details:[39m[22m [31m./__tests__/__image_snapshots__/__diff_output__/cleanup-required-4-diff.png[39m" | ||
`; | ||
|
||
exports[`toMatchImageSnapshot failures fails with images without diff pixels after being resized 3`] = ` | ||
"Expected image to match or be a close match to snapshot but was 54.662222222222226% different from snapshot (12299 differing pixels). | ||
[1m[31mSee diff for details:[39m[22m [31m./__tests__/__image_snapshots__/__diff_output__/cleanup-required-5-diff.png[39m" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters