[NO QA] Eslint9 - Remove deprecated usage of react-test-renderer#71972
Conversation
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
fefc34b to
06bb1a1
Compare
|
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@LukasMod Can you remove the package from package.json? |
|
@shubham1206agra Looks like I should not. Its peer dependency of react-native-testing-library. https://callstack.github.io/react-native-testing-library/docs/start/quick-start#installation |
Reviewer Checklist
|
8cc72d5 to
05dbd6b
Compare
|
another pack of conflicts, will resolve tomorrow |
…to refactor/eslint-react-test-render-deprecated
05dbd6b to
1201606
Compare
|
@roryabraham I resolved conflicts for now 👍 |
mountiny
left a comment
There was a problem hiding this comment.
Seems like a safe change to move ahead. I will merge it since Rory is ooo and will help to unblock the rest of the eslint9 migration https://expensify.slack.com/archives/C05LX9D6E07/p1760105665654959?thread_ts=1759869138.848599&cid=C05LX9D6E07
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.30-6 🚀
|
Explanation of Change
This PR helps with the migration of the codebase to ESLint 9.
It removes
react-test-rendererimports, as they are now deprecated.A few deprecated types are hardcoded since they are used internally for debugging only and
@testing-library/react-nativealso relies on these types (as it is built on top ofreact-test-renderer). Small clean up, all perf tests passed (currently disabled on CI).Fixed Issues
$ #67420
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop