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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure Threshold ENV variable or ENV var for config file #241

Open
YoungElPaso opened this issue Feb 17, 2022 · 1 comment
Open

Failure Threshold ENV variable or ENV var for config file #241

YoungElPaso opened this issue Feb 17, 2022 · 1 comment

Comments

@YoungElPaso
Copy link

It would be pretty useful to be able to alter the failure threshold configuration via env variable, so for instance you could force failure to generate new snapshots or just use a harsher threshold on the fly when spot checking some component or another.

An alternative and perhaps better, more flexible approach would be to have different configuration files that could be selected, again via env variable. This might be useful for the above mentioned use case as well as having harsher checks per CI gate or other workflow or condition (dev vs prod etc).

@YoungElPaso
Copy link
Author

I realized this is easily done in the default commands.js file so this could be closed (since anyone can do it), or easily incorporated into the default and docs provided by this package. 🤷‍♂️

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

1 participant