Created
March 24, 2021 16:33
-
-
Save csouchet/5952bffac22eb46a7fe7b46d20f7ca7a to your computer and use it in GitHub Desktop.
Change failureThreshold of jest-image-snapshot
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
// jest-image-snapshot custom configuration | |
function getConfig () { | |
return { | |
// …, | |
// anything less than 0.5 percent difference passes as the same | |
failureThreshold: 0.005, | |
failureThresholdType: 'percent', | |
}; | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment