-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix uncalled/impotent test functions #2945
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2945 +/- ##
===========================================
+ Coverage 72.75% 82.90% +10.15%
===========================================
Files 267 47 -220
Lines 10204 4926 -5278
Branches 1196 574 -622
===========================================
- Hits 7424 4084 -3340
+ Misses 2430 701 -1729
+ Partials 350 141 -209
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Reviewed 12 of 12 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
src/components/DataEntry/DataEntryTable/tests/index.test.tsx
line 154 at r1 (raw file):
expect(mockCreateWord).not.toHaveBeenCalled(); testHandle = testRenderer.root.findByType(NewEntry); expect(testHandle).not.toBeNull;
Why is this not useful?
Code quote:
expect(testHandle).not.toBeNull;
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.
Reviewable status: 11 of 12 files reviewed, all discussions resolved (waiting on @jasonleenaylor)
src/components/DataEntry/DataEntryTable/tests/index.test.tsx
line 154 at r1 (raw file):
Previously, jasonleenaylor (Jason Naylor) wrote…
Why is this not useful?
findByType()
above will just throw an error if one isn't found, and toBeNull
needed ()
, and we have tests below that will fail iftestHandle
is not what it's supposed to be.
Previously, imnasnainaec (D. Ror.) wrote…
👍 |
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)
This change is