Source code missing in reporters on error, when certain line width is reached, very inconsistent #5431
Closed
6 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
Using Vitest Basic and Default reporters, there is issue where source showing code where error occurred is not displayed upon reaching certain width (this happens also when error line is short, but subsequent line is long enough).
Another issue is that this behavior is not consistent, as for instance string assertion with around 150 chars shows (breaks at 152), while array literal assertion breaks before 80
Reproduction
I tried it on Vitest examples Basic example, just inserting following assertions, using Default and Basic reporters
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: