web
web copied to clipboard
feat: add support for configuring the failure threshold
What I did
- add config option for setting a failure threshold by percent or number of pixels
- check this value when diffing the image, and return appropriate message
- improve console output when image size mismatch
🦋 Changeset detected
Latest commit: 555285b6bd23eb388467e22bd33826a7ff67e73b
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
Name | Type |
---|---|
@web/test-runner-visual-regression | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Hey, any reason this never got merged?
Sorry about leaving this hanging. Rebased the PR to trigger the build, I think we can merge when it's green.
No worries! I'd completely forgotten about it until my colleague asked about one of these features :)
@web-padawan @WickyNilliams This PR seems to be missing the updated config parameters in the main readme: https://github.com/modernweb-dev/web/tree/master/packages/test-runner-visual-regression
Thanks, I missed to check those while reviewing. Feel free to submit another PR to add those.