-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
expect: Improve report when matcher fails, part 8 #7876
Conversation
Review pictures as if they have updated default format for differences in following #7876 (comment) 16 example pictures baseline at left and improved at right 6 expected is finite number 4 expected is 3 expected is 3 expected is JavaScript is consistent if confusing that |
Codecov Report
@@ Coverage Diff @@
## master #7876 +/- ##
==========================================
+ Coverage 58.46% 58.52% +0.05%
==========================================
Files 178 178
Lines 6638 6647 +9
Branches 6 5 -1
==========================================
+ Hits 3881 3890 +9
Misses 2755 2755
Partials 2 2
Continue to review full report at Codecov.
|
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.
this is awesome
Almost a year later, we finally found a way to follow up on review #5512 (comment) by Michał:
|
I'm sure he's dancing with joy 💃 |
🕺 |
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
.toBeCloseTo
matcher:Expected:
andExpected difference:
labelsnot
expected value (am happy if y’all can suggest as an alternative a concise explicit way to communicate that is reason why test fails)For more information, see discussion with @jeysal in #7795
Residue for future pull requests:
In call to
ensureNumbers
helper function:options
as argument to displaypromise
andisNot
Decide whether
.toBeCloseTo
throws matcher error:NaN
precision
argument is not integer numberTest plan
Updated 17 snapshot tests
See also pictures in following comments