-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove snapshot files when a test file stops using snapshots #1424
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
Comments
I wonder if |
Correct, but this issue is for the scenario where the test file still exists. |
@IssueHunt has funded $60.00 to this issue.
|
I'd like to work on this, if that's alright? |
@ninevra yea that'd be great! |
Fixes #1424. Co-authored-by: Mark Wubben <[email protected]>
@novemberborn could you award the bounty on this? sorry, i think i submitted the pr on issuehunt too late, which caused the bounty not to be awarded automatically. |
@novemberborn has rewarded $54.00 to @ninevra. See it on IssueHunt
|
When
--update-snapshots
is passed, if AVA executes a test file for which there are snapshots, but no snapshot assertion is run, we should remove the snapshot files.What's tricky though is if tests are skipped, or if snapshot assertions are skipped, we should not remove the snapshot files.
See https://github.com/avajs/ava/blob/9d3b1bad681e1aad18ad8cd53407a7ccb1fc5782/lib/runner.js#L205:L207.
IssueHunt Summary
Backers (Total: $60.00)
Submitted pull Requests
Tips
The text was updated successfully, but these errors were encountered: