-
Notifications
You must be signed in to change notification settings - Fork 14k
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
refactor: migrate ExploreResultsButton component to FC & tsx #18143
refactor: migrate ExploreResultsButton component to FC & tsx #18143
Conversation
I do not feel entitled to judge the issue of style in this project (I have too little experience in the project), but due tagging, I will express my opinion: dead code should be removed from the codebase, and besides, it is probably removed from bundles provided to the user by the Webpack. |
Hello! We can set up a test environment to see if it affects the functionality of the component, if it does not then we should remove them, I agree. |
@EugeneTorap you have some linting errors on CI. You might wanna install |
Oh I think this is already happening here: #17987 |
@lyndsiWilliams Can you help me to fix |
Hey @EugeneTorap! What error are you getting when you run the test?
As far as conversion: My conversion method for JS to TS in these tests is to change the file to |
|
You'll need to wrap each render in a |
Codecov Report
@@ Coverage Diff @@
## master #18143 +/- ##
==========================================
+ Coverage 65.95% 66.23% +0.27%
==========================================
Files 1584 1594 +10
Lines 62046 62586 +540
Branches 6273 6304 +31
==========================================
+ Hits 40920 41451 +531
+ Misses 19505 19490 -15
- Partials 1621 1645 +24
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@geido @AAfghahi @lyndsiWilliams Can you review the PR again. |
/testenv up |
@geido Ephemeral environment spinning up at http://34.220.37.167:8080. Credentials are |
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.
I am tentatively approving this PR but it would be great to move the tests to RTL if possible. I am fine with doing that in a separate PR as long as we don't lose track of those. Thank you
I agree with Geido, that it would be ideal if these tests were written in RTL. But happy to merge this. |
Ephemeral environment shutdown and build artifacts deleted. |
…18143) * Move ExploreResultsButton to FC & tsx * Refactoring * Refactoring * Refactoring * Refactoring * Refactoring * Refactoring * Refactoring * Fix test
SUMMARY
Migrated ExploreResultsButton to TypeScript to apply direction outlined in #18100 .
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION