expect: Improve report when negative CalledWith assertion fails#8755
expect: Improve report when negative CalledWith assertion fails#8755pedrottimark merged 5 commits intojestjs:masterfrom
Conversation
|
What do you think about dim color for equal arguments in report for negative assertions? In first example, current pull request above possible improvement: P.S. Forgot to say before, scenario above is testing an imaginary reverse-order array method In second and third examples, current pull request at left and possible improvement at right: The reports for positive assertions will need dim color, so we might avoid extra code |
|
Oh yeah, dimming the parts that match makes a lot of sense to me |
|
Yes, looks very good 👌 |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |










Summary
For
.not.toHaveBeen*CalledWithassertions:notfollowingExpectedlabelcalled with no argumentswithcalled with 0 argumentsto avoid double negativeReceived: whateveron one lineReason to separate pull requests:
Test plan
Updated 40 snapshots
toHaveBeenCalledtoBeCalledtoHaveBeenCalledWithtoBeCalledWithtoHaveBeenLastCalledWithlastCalledWithtoHaveBeenNthCalledWithnthCalledWithSee also pictures in following comment
Example pictures baseline at left and improved at right