-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: allow snapshot dir to be different #892
Conversation
3dc9575
to
5c036fb
Compare
Yeah that seems alright to me. I confirmed walk_snapshot_dir is only ever called with the snapshot dirname. I think it was called with other directories in some previous iteration of the codebase. |
@all-contributors add @joostlek for code |
I've put up a pull request to add @joostlek! 🎉 |
## [4.7.2](v4.7.1...v4.7.2) (2024-10-06) ### Bug Fixes * allow snapshot dir to be different ([#892](#892)) ([548ec06](548ec06))
🎉 This PR is included in version 4.7.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This is awesome, thank you so much |
Remove unused snapshots which is possible with syrupy-project/syrupy#892 resolved & also fixes the failing test suite.
Remove unused snapshots which is possible with syrupy-project/syrupy#892 resolved & also fixes the failing test suite.
Remove unused snapshots which is possible with syrupy-project/syrupy#892 resolved & also fixes the failing test suite.
Remove unused snapshots which is possible with syrupy-project/syrupy#892 resolved & also fixes the failing test suite.
Remove unused snapshots which is possible with syrupy-project/syrupy#892 resolved & also fixes the failing test suite.
Description
This PR aims to allow setting the dirname to something else than
__snapshots__
while maintaining the functionality of a failing test suite when snapshots are unused.Related Issues
Checklist
Additional Comments
I think I changed the
test_walk_dir_skips_non_snapshot_path
test in a wrong way, but since the function this is testing (walk_snapshot_dir
) is always called in context, this isn't a real use case afaict