-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: support matchStandaloneSnapshot #102
Conversation
d94c65a
to
63da2c9
Compare
63da2c9
to
c1316de
Compare
b8702af
to
f0114f8
Compare
f0114f8
to
a34dc31
Compare
...StandaloneSnapshot_test_TestMatchStandaloneSnapshot_should_create_html_snapshots_1.snap.html
Outdated
Show resolved
Hide resolved
Hi @gkampitakis! Thanks for putting this together. I was in the midst of looking for a way to save snapshot files with a Do you have a timeline around releasing this change? Thanks again! |
Hey @jeremyhcho, thanks for your interest. I have been quite busy this week, but hopefully I will make progress and manage to merge it this weekend if I don't encounter any issue as this pr is mostly done 😄 . If you want to test it and provide any feedback you are welcome to try it with
|
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/gkampitakis/go-snaps](https://togithub.com/gkampitakis/go-snaps) | `v0.5.5` -> `v0.5.6` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgkampitakis%2fgo-snaps/v0.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgkampitakis%2fgo-snaps/v0.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgkampitakis%2fgo-snaps/v0.5.5/v0.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgkampitakis%2fgo-snaps/v0.5.5/v0.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [github.com/urfave/cli/v2](https://togithub.com/urfave/cli) | `v2.27.2` -> `v2.27.3` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2furfave%2fcli%2fv2/v2.27.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2furfave%2fcli%2fv2/v2.27.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2furfave%2fcli%2fv2/v2.27.2/v2.27.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2furfave%2fcli%2fv2/v2.27.2/v2.27.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>gkampitakis/go-snaps (github.com/gkampitakis/go-snaps)</summary> ### [`v0.5.6`](https://togithub.com/gkampitakis/go-snaps/releases/tag/v0.5.6) [Compare Source](https://togithub.com/gkampitakis/go-snaps/compare/v0.5.5...v0.5.6) #### What's Changed - feat: support matchStandaloneSnapshot by [@​gkampitakis](https://togithub.com/gkampitakis) in [https://github.com/gkampitakis/go-snaps/pull/102](https://togithub.com/gkampitakis/go-snaps/pull/102) - feat: support setting file extension by [@​gkampitakis](https://togithub.com/gkampitakis) in [https://github.com/gkampitakis/go-snaps/pull/102](https://togithub.com/gkampitakis/go-snaps/pull/102) **Full Changelog**: gkampitakis/go-snaps@v0.5.5...v0.5.6 </details> <details> <summary>urfave/cli (github.com/urfave/cli/v2)</summary> ### [`v2.27.3`](https://togithub.com/urfave/cli/releases/tag/v2.27.3) [Compare Source](https://togithub.com/urfave/cli/compare/v2.27.2...v2.27.3) #### What's Changed - v2 Docs: Mention value from env as default value by [@​sj14](https://togithub.com/sj14) in [https://github.com/urfave/cli/pull/1910](https://togithub.com/urfave/cli/pull/1910) - Bump github.com/xrash/smetrics dependency by [@​elezar](https://togithub.com/elezar) in [https://github.com/urfave/cli/pull/1911](https://togithub.com/urfave/cli/pull/1911) - fix: disable bash completion if double dash is included in arguments (v2) by [@​suzuki-shunsuke](https://togithub.com/suzuki-shunsuke) in [https://github.com/urfave/cli/pull/1938](https://togithub.com/urfave/cli/pull/1938) - Fix improper whitespace formatting in usageTemplate, AppHelpTemplate … by [@​caeret](https://togithub.com/caeret) in [https://github.com/urfave/cli/pull/1947](https://togithub.com/urfave/cli/pull/1947) #### New Contributors - [@​sj14](https://togithub.com/sj14) made their first contribution in [https://github.com/urfave/cli/pull/1910](https://togithub.com/urfave/cli/pull/1910) - [@​elezar](https://togithub.com/elezar) made their first contribution in [https://github.com/urfave/cli/pull/1911](https://togithub.com/urfave/cli/pull/1911) - [@​caeret](https://togithub.com/caeret) made their first contribution in [https://github.com/urfave/cli/pull/1947](https://togithub.com/urfave/cli/pull/1947) **Full Changelog**: urfave/cli@v2.27.2...v2.27.3 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 6am on monday" in timezone Australia/Sydney, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/google/osv-scanner). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Closes #100
Note
The new method can show false positives for obsolete files when using
snaps.Skip*
or-run
.Also similarly to other methods if the file is the last in a directory and it's obsolete go-snaps won't mark it as obsolete as it can't discover it.