-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: enzyme to react testing library (3 test files) #4571
fix: enzyme to react testing library (3 test files) #4571
Conversation
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 pull request was sent to the PullRequest network.
@asada-no4 you can click here to see the review status or cancel the code review job.
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.
PullRequest Breakdown
Reviewable lines of change
+ 26
- 18
100% JavaScript (tests)
Type of change
Fix - These changes are likely to be fixing a bug or issue.
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.
Thank you for your support of our cause!
Ref #4300
@@ -2,12 +2,12 @@ import React from "react"; | |||
import range from "lodash/range"; | |||
import MonthDropdown from "../src/month_dropdown.jsx"; | |||
import MonthDropdownOptions from "../src/month_dropdown_options.jsx"; | |||
import { mount } from "enzyme"; |
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.
👍
@@ -1,7 +1,6 @@ | |||
import React from "react"; | |||
import MonthYearDropdown from "../src/month_year_dropdown.jsx"; | |||
import MonthYearDropdownOptions from "../src/month_year_dropdown_options.jsx"; | |||
import { mount } from "enzyme"; |
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.
👍
01e04fc
to
0a55ae4
Compare
Thank you! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4571 +/- ##
=======================================
Coverage 96.87% 96.87%
=======================================
Files 28 28
Lines 2561 2561
Branches 1074 1074
=======================================
Hits 2481 2481
Misses 80 80 ☔ View full report in Codecov by Sentry. |
Some of the tests have been modified to migrate from enzime to the react testing library.
Details:.
Fixed tests to use rtl's render instead of enzime's mount where handleClickOutside is used.
Sorry if a similar modified PR has already been created.