Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

failureThreshold configuration question #228

Open
pedrovgs opened this issue Sep 29, 2021 · 1 comment
Open

failureThreshold configuration question #228

pedrovgs opened this issue Sep 29, 2021 · 1 comment

Comments

@pedrovgs
Copy link

Hi! First of all, thanks for such a great project 馃憦 I have a question. I'm using the library and I'm wondering what's the range of failureThreshold you can pass as a parameter when adding the cypress command

addMatchImageSnapshotCommand({
    failureThreshold: 0.0,
    failureThresholdType: "percent",
    customDiffConfig: { threshold: 0.0 },
    capture: "viewport",
});

Is it between 1 and 0 meaning 1 is 100% of failure threshold, 0.5 is 50% and 0 is 0% or maybe the range is between 100 and 0 meaning that 100 is 100%, 50 is 50% and 0 is 0%?

@pedrovgs pedrovgs changed the title failureThreshold configuration failureThreshold configuration questio Sep 29, 2021
@pedrovgs pedrovgs changed the title failureThreshold configuration questio failureThreshold configuration question Sep 29, 2021
@Keysox
Copy link

Keysox commented Oct 15, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants