Skip to content

Get full diff of mismatching strings #1666

Answered by koddsson
avin-kavish asked this question in Support
Discussion options

You must be logged in to vote

You can set the truncateThreshold to whatever you want. Setting it to 0 disables truncating.

chai.config.truncateThreshold = 0; // disable truncating

https://www.chaijs.com/guide/styles/#configuration

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by keithamus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1478 on January 22, 2025 11:53.