You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.
JSON ends up turning line breaks into \ns which makes multiline snapshots very hard to diff for code reviews/pull requests or if you're using your diff tool instead of cargo snapshot.
Doesn't look like the yaml-rust crate currently supports multiline strings, but the hjson crate does.
Requires a downgrade of serde, but since serialization to snapshots is all we're using serde for right now, shouldn't be a big deal. I'll make a PR for your consideration.
JSON ends up turning line breaks into
\n
s which makes multiline snapshots very hard to diff for code reviews/pull requests or if you're using your diff tool instead ofcargo snapshot
.I'm not a particularly big fan of YAML, but it does support multiline strings and there is a serde crate for yaml serialization.
The text was updated successfully, but these errors were encountered: