-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore: Reduce enzymes usage 1/3 (#8721) #8942
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## **Description** Convert the list of unit tests to use react-testing-library instead of enzyme for the following files: ``` 'app/components/Views/Root/index.test.tsx', 'app/components/Views/NavigationUnitTest/TestScreen3.test.js', 'app/components/Views/NavigationUnitTest/TestScreen2.test.js', 'app/components/Views/NavigationUnitTest/TestScreen1.test.js', 'app/components/Views/ImportPrivateKeySuccess/index.test.tsx', 'app/components/Views/AccountBackupStep1B/index.test.tsx', 'app/components/UI/WebviewProgressBar/index.test.tsx', 'app/components/UI/SeedphraseModal/index.test.tsx', 'app/components/UI/PhishingModal/index.test.tsx', 'app/components/UI/FoxScreen/index.test.tsx', 'app/components/UI/FadeView/index.test.tsx', 'app/components/UI/CustomAlert/index.test.tsx', 'app/components/UI/Confetti/index.test.tsx', 'app/components/UI/Collectibles/index.test.tsx', 'app/components/UI/Button/index.test.tsx', 'app/components/UI/AnimatedSpinner/index.test.tsx', 'app/components/UI/AddCustomToken/index.test.tsx', ``` ## **Related issues** Fixes: #8616 ## **Manual testing steps** Not Applicable ## **Screenshots/Recordings** Not Applicable ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've clearly explained what problem this PR is solving and how it is solved. - [x] I've linked related issues - [ ] I've included manual testing steps - [ ] I've included screenshots/recordings if applicable - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [x] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [x] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --------- Co-authored-by: Cal Leung <cleun007@gmail.com>
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
tommasini
approved these changes
Mar 14, 2024
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.
LGTM!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
No QA Needed
Apply this label when your PR does not need any QA effort.
release-7.19.0
Issue or pull request that will be included in release 7.19.0
team-mobile-platform
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR merges @timi-codes 's PR that converts some of the unit tests to use react testing library.
The original PR is here - #8721
Convert the list of unit tests to use react-testing-library instead of enzyme for the following files:
Related issues
Fixes: #8616
Manual testing steps
Not Applicable
Screenshots/Recordings
Not Applicable
Pre-merge author checklist
Pre-merge reviewer checklist
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist