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
I use tape to test a source-generator so I often have larger files to compare.
Tape shows me the output with linebreaks escaped as '\n', which is difficult to read. Is there a way I could have a line-by-line diff. Or compare two arrays and have tape tell me which elements differ?
The text was updated successfully, but these errors were encountered:
I've just been running into the same problem: tape has been working really well, except for the fact that failures on the multiline strings I'm trying to assert on are pretty unreadable:
Looks like this happens with the use of inspect-object:
Would it make sense to skip this if it's already a string? Line breaks would then be present, but you'd lose the single quotes surrounding it (does that qualify as a breaking change?).
@thewilkybarkid the surrounding quotes are important. It seems reasonable for tape to maybe take an option, and pass an option to object-inspect (and add the option there if needed) to improve the formatting here.
I use tape to test a source-generator so I often have larger files to compare.
Tape shows me the output with linebreaks escaped as '\n', which is difficult to read. Is there a way I could have a line-by-line diff. Or compare two arrays and have tape tell me which elements differ?
The text was updated successfully, but these errors were encountered: