-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
use insta
for witness tests
#935
use insta
for witness tests
#935
Conversation
It's still ron, so multiline strings will not be rendered super well. We could use a different serializer like |
I suspect many of our witnesses will be multi-line once we get past the basic "item deleted" ones, and diffing multi-line strings represented with escape sequences is going to get really annoying quickly. We risk letting bugs slip just because it was hard to notice the snapshot changed in an undesirable way (e.g. bad indentation etc.) |
It looks like the yaml serializer that
|
20f2e4c
to
6d8ac29
Compare
6d8ac29
to
6661d25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! 🚀
See also #933 (comment).
Replaces custom snapshot code with
insta
when testing witness generation for lints, which should have better contributor experience.