-
Notifications
You must be signed in to change notification settings - Fork 30k
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 diff if test fails with an assertion that has a message #48465
Comments
Hi @MoLow, I would like to work on this issue and submit a pull request. |
@AdityaPimpalkar if you have a solution, you should open a PR. i'd be happy to review it |
Addition of the error difference (actual and expected) when provided a custom message Fixes: nodejs#48465
Addition of the error difference (actual and expected) when provided a custom message Fixes: nodejs#48465
Addition of the error difference (actual and expected) when provided a custom message Fixes: nodejs#48465
Addition of the error difference (actual and expected) when provided a custom message Fixes: nodejs#48465
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There is an open PR to resolve this awaiting code review. |
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-stale
|
The PR is still awaiting review |
Fixes: nodejs#48465 PR-URL: nodejs#54759 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: nodejs#48465 PR-URL: nodejs#54759 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
What is the problem this feature will solve?
Let’s say we have the following test:
This yields:
Now we want to provide some more context for the assertion, so we add a message.
Now this yields (the diff is gone):
Although the intent of adding an assertion message is good, IMO the former is much more useful.
What is the feature you are proposing to solve the problem?
Show both the custom message and the diff. I.e.
What alternatives have you considered?
None
The text was updated successfully, but these errors were encountered: