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

--update-snapshot without overwriting unused ones #787

Open
JerryLui opened this issue Aug 16, 2023 · 0 comments · May be fixed by #862
Open

--update-snapshot without overwriting unused ones #787

JerryLui opened this issue Aug 16, 2023 · 0 comments · May be fixed by #862
Labels
feature request New feature or request good first issue Good for newcomers

Comments

@JerryLui
Copy link

Is your feature request related to a problem? Please describe.
Working with a large test suites we have some tests that are being skipped depending on environment. When writing new tests with snapshots and then running --update-snapshot this overwrites the skipped snapshots which requires reverting the changes.

Describe the solution you'd like
A flag --skip-unused that skips the unused snapshots which would also hide the error/warning about unused snapshots.

Describe alternatives you've considered
Reverting the changed snapshots manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants