Closed Jack89ita closed 6 years ago
The configuration shouldn't be provided to setupJestScreenshot()
but instead you need to create a jest-screenshot.json file in your project's root directory with that configuration or put it into your package.json
behind a jestScreenshot
key.
I see that this can be confusing, but as well the reporter as the custom matcher need to access the configuration and they run in different processes.
Perfect!now it's working as expected! Thank you!
Hello again! I've got a problem with the pixelThresholdRelative param. This is my config:
So i expect that the test will fail if 50% or more pixels are different but instead i got this message from console:
Any tip? Thank you!