-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
WIP: Format failed external asserts nicer #2230
Conversation
External asserts like: - chai - expect Closes avajs#1277
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's an interesting approach. You're looking at the thrown error to see if it may have come from an assertion library? And then the hope is that its message
is useful?
Yeah! Judging by a quick look, they usually have an already formatted |
Sounds great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tryzniak could you add some tests for this? Let me know if you'd like some pointers.
Closing due to inactivity. We'd be happy to pick this up again when you have the time to get back to this. |
Hello. This for #1277 . I'd love to show you what I've been up to, here are the new output
testfile
I don't really like the way
supertest
errors are shown, I have no idea how we could detect what line of the test its expect failed.Other errors have inconsistent formatting, which is not very nice.
I'm thinking of capturing and detecting a type of an error earlier.
Any input would be useful for me! Thanks