-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Feature Request]: MatchYAML #74
Comments
Hey 👋 Thanks for opening this issue and using go-snaps. I have thought about it but wasn't sure if it's a functionality people would use.
Not sure if you had any look on the That said happy to discuss about it. |
Hey 👋 do you think It would be possible to add an option, to just render the snapshot as yaml? That would be handy! |
You mean save it as yaml on the snap file? There is this option now where you can do
This will create a file |
Ok, now the file has the ending .yaml, but is not a valid yaml file... What I am Looking for is something like this rspYml, rspYmlErr := yaml.Marshal(rsp)
s.MatchSnapshot(t, string(rspYml), rspYmlErr) this is working :-) but one line would be nice... but really - as I now have something working, it's not urgent :-) Really like your snaps library! |
Okay I see your point. Yes that would be something that I would like to built inside the I can introduce the As per my previous comment
|
🚀 Feature Proposal
Considering the existence of the MatchJSON function, I suggest to introduce a similar implementation for YAML files: MatchYAML.
If agreeable, I would like to collaborate implementing this feature.
Motivation
I'm using this library for a project where I need to handle some data via JSON and YAML and I'd like to have the same functionality that I've with MatchJSON
Example
No response
The text was updated successfully, but these errors were encountered: