Repository navigation
Show diff if test fails with an assertion that has a message #48465
Description
Activity
- addedfeature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
on Jun 15, 2023 - addedassertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.
on Jun 15, 2023 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
- added a commit that references this issue
on Jul 25, 2023 github-actions commented
on Jan 14, 2024 on Jan 14, 2024 – with GitHub ActionsContributorMore actionsThere 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.
- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Jan 14, 2024 There is an open PR to resolve this awaiting code review.
- removedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Jan 15, 2024 github-actions commented
on Jul 13, 2024 on Jul 13, 2024 – with GitHub ActionsContributorMore actionsThere has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale
Issues and PRs exempt from automated stale handling. label or close this issue if it should be closed. If not, the issue will be automatically 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.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Jul 13, 2024 The PR is still awaiting review
- removedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Jul 14, 2024 - added a commit that references this issue
on Sep 28, 2024
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