-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Show property name in property that assertion error message #1089
Comments
Why it should be on one statement? I would have 2 statement, 1 for the property and 1 for the type. |
I thought so too But now that such API “.that” is provided, doesnt users who use it intend to identify “which” property is wrong or not? |
Hey @peteranny thanks for the issue! We have plans to improve error messaging, around chai version 5 we should see a completely new system for error messages which should do exactly what you want. I'll close this because its something on the horizon - we just need to get all our ducks in a row first. |
Oh and - #457 is our roadmap issue. You can track progress on v5 there. |
Given:
Which throws:
Hope this could be something like
The text was updated successfully, but these errors were encountered: