Skip to content
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

Assertion messages are malformed #140

Closed
tudorilut opened this issue Mar 7, 2022 · 2 comments
Closed

Assertion messages are malformed #140

tudorilut opened this issue Mar 7, 2022 · 2 comments

Comments

@tudorilut
Copy link

Hello. For a few months the assertion messages are malformed in the html report. This is an example on how they are displayed:

[2massert[22m[2m.strictEqual([22m[31mreceived[39m[2m, [22m[32mexpected[39m[2m)[22m

[0mExpected value to strictly be equal to:[0m
[0m[0m  [32m3[39m
[0mReceived:[0m
[0m[0m  [31m2[39m[0m[0m
[0m[0m
[0mMessage:[0m
[0m  expected 2 to equal 3[0m

What can possible be the cause for this? This is happening with both chai and Jest matchers. Let me know if I can help with any other information.

@Hargne
Copy link
Owner

Hargne commented Mar 11, 2022

Those looks like escaped ANSI color codes output by Jest.
I found this issue and this issue mentioning this

@tudorilut
Copy link
Author

Thank you for looking into this. Since it's a problem that comes from Jest I think we can close this issue. I'll use --no-color option for now to properly display the assertion messages.

@Hargne Hargne closed this as completed Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants