MetaMask / MetaMask/metamask-mobile

Remove Enzyme usage (5/5)

Open
#12,300 4 comments 0 reactions 1 assignee Claimed by @tusharnagar17 View on GitHub
good first issue team-mobile-platform
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### What is this about?

### What is this about?

Replace enzyme usage in the follow files with React testing library

```
app/components/Views/confirmations/ApproveView/Approve/index.test.tsx
app/components/Views/Settings/NetworksSettings/NetworkSettings/index.test.tsx
app/components/Views/Settings/Contacts/ContactForm/index.test.tsx
app/components/Views/confirmations/components/TransactionReview/TransactionReviewSummary/index.test.tsx
app/components/Views/confirmations/components/TransactionReview/TransactionReviewInformation/index.test.tsx
app/components/Views/confirmations/components/TransactionReview/TransactionReviewDetailsCard/index.test.js
app/components/Views/confirmations/components/TransactionReview/TransactionReviewData/index.test.tsx
app/components/Views/confirmations/components/SignatureRequest/Root/Root.test.tsx
app/components/Views/confirmations/components/SignatureRequest/ExpandedMessage/index.test.tsx
app/components/Views/confirmations/SendFlow/components/CustomNonceModal/index.test.tsx
app/components/Views/confirmations/Approval/components/TransactionEditor/index.test.tsx
app/component-library/components/Form/TextField/foundation/Input/Input.test.tsx
app/component-library/components/Buttons/Button/foundation/ButtonBase/ButtonBase.test.tsx
app/component-library/components/Badges/Badge/foundation/BadgeBase/BadgeBase.test.tsx
app/component-library/components/Badges/Badge/variants/BadgeStatus/BadgeStatus.test.tsx
app/component-library/components/Accordions/Accordion/foundation/AccordionHeader/AccordionHeader.test.tsx
app/component-library/components/Avatars/Avatar/variants/AvatarToken/AvatarToken.test.tsx
app/component-library/components/Avatars/Avatar/variants/AvatarNetwork/AvatarNetwork.test.tsx
app/component-library/components/Avatars/Avatar/variants/AvatarFavicon/AvatarFavicon.test.tsx
app/component-library/components/Avatars/Avatar/foundation/AvatarBase/AvatarBase.test.tsx
```

### Scenario

_No response_

### Design

_No response_

### Technical Details

_No response_

### Threat Modeling Framework

_No response_

### Acceptance Criteria

- All files listed should no longer have traces of enzyme

### Stakeholder review needed before the work gets merged

- [ ] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)

### References

_No response_

### Scenario

_No response_

### Design

_No response_

### Technical Details

_No response_

### Threat Modeling Framework

_No response_

### Acceptance Criteria

_No response_

### Stakeholder review needed before the work gets merged

- [ ] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)

### References

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.