jest-image-snapshot
jest-image-snapshot copied to clipboard
require failureThreshold at both percentage and pixel level ?
we have some large screenshots, the percentage itself (0.001) there can still be large enough to not capture certain changes we want, so would be nice to have a 0.001
with percent
and min-pixel like 300
at the same time
here is the proposed interface:
// number for backward compatible
failureThreshold: number | {
pixel: number,
percent: number,
}
// or leave `both` out to infer based on above object type
failureThresholdType: "pixel" | "percent" | "both"