We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it be possible to keep line breaks in the snapshots?
Current snapshot is a single line which makes them quite difficult to compare when it's a longer, multiline value.
The text was updated successfully, but these errors were encountered:
Hi @tpluscode 👋
Can you give me an example, use case or/and data-structure where the break line is not being applied?
In the chai-snapshot-matcher-boilerplate project I have some examples (arrays and objects) where the break line is properly applied.
Thanks for your comments 🙏
Sorry, something went wrong.
Just any multiline string; it gets stored as a single line with \n characters.
\n
Of course, the library works fine but if the snapshots kept visible line breaks then diffs will be much more readable
Here's an example: https://github.com/tlameiras/chai-snapshot-matcher-boilerplate/compare/master...tpluscode:multiline?expand=1
I would like the exports["chai-snapshot-matcher - matchSapshot - stores multiline snapshots"] to actually preserve the original verbatim
exports["chai-snapshot-matcher - matchSapshot - stores multiline snapshots"]
Successfully merging a pull request may close this issue.
Is it be possible to keep line breaks in the snapshots?
Current snapshot is a single line which makes them quite difficult to compare when it's a longer, multiline value.
The text was updated successfully, but these errors were encountered: