Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

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

Get full diff of mismatching strings #1478

Closed
avin-kavish opened this issue Aug 22, 2022 · 1 comment
Closed

Get full diff of mismatching strings #1478

avin-kavish opened this issue Aug 22, 2022 · 1 comment

Comments

@avin-kavish
Copy link

Is it possible to get a full diff of strings that don't match?

AssertionError: expected 'select "firstName" as "fullName" from…' to match /first_name/

Currently, it's truncated like this.

@koddsson
Copy link
Member

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

@chaijs chaijs locked and limited conversation to collaborators Jan 22, 2025
@keithamus keithamus converted this issue into discussion #1666 Jan 22, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants