-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: increase test coverage for ToggleTip #17661
fix: increase test coverage for ToggleTip #17661
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17661 +/- ##
==========================================
+ Coverage 77.36% 77.50% +0.14%
==========================================
Files 409 409
Lines 14077 14077
Branches 4344 4372 +28
==========================================
+ Hits 10890 10911 +21
+ Misses 3017 2997 -20
+ Partials 170 169 -1 ☔ 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.
just some placs using fireevent where I think we can use userEvent, but otherwise looks good!
packages/react/src/components/Toggletip/__tests__/Toggletip-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/Toggletip/__tests__/Toggletip-test.js
Outdated
Show resolved
Hide resolved
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.
looks good to me!
9d1822c
* fix: increase test coverage for ToggleTip * refactor: userEvent over fireEvent --------- Co-authored-by: Alison Joseph <[email protected]>
Closes #17498
This PR increases test coverage got ToggleTip
Changelog
Added new test cases
Testing / Reviewing
Test coverage should increase
Verify that test makes sense