-
Notifications
You must be signed in to change notification settings - Fork 39
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
Removing files from intermediate dir to prevent old screenshots from reappearing #616
Removing files from intermediate dir to prevent old screenshots from reappearing #616
Conversation
2fb6d83
to
4bd220f
Compare
6ea6edd
to
5e5d3db
Compare
Thanks! We need a test to ensure this type of error is caught. Could you add a test or a check that specifically triggers this failure? |
I've added the test and confirmed it was triggering the issue before the fix was applied. It also helped me improve the fix to use |
l'm concerned that this implementation might remove other reference (golden) images when users save images in src/screeeshots or somewhere and run tests with the --tests className.method option or category filters to update screenshots. It seems like we need a test case to cover this scenario. Do you have time to handle this? |
I've added a test to cover the filtering case, it looks like the implementation doesn't cause any problems with that. I was, however, a bit confused with the reference to |
This is quite difficult to handle correctly, and it's very challenging. I've checked several patterns locally, and this appears to work as intended. |
Proposed solution for #615