Skip to content
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: Migrated Enzyme to RNTL in test files from component-library #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link

Description

Migration of unit tests from Enzyme to React Native Testing Library (RNTL) for BadgeBase and SheetBottom components.

Motivation:

The migration is part of an effort to standardize testing practices and utilize the more current and robust features of RNTL.

Solution:

Updated test files to use RNTL's API, ensuring tests are more maintainable and aligned with current standards.

Related issues

N/A

Manual testing steps

  1. Ensure the app builds correctly.
  2. Run the updated tests using yarn jest <folder_name> --updateSnapshot and confirm they pass.

Screenshots/Recordings

N/A

Pre-merge author checklist

  • I've followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability.
  • I've included tests if applicable.
  • I've documented my code using JSDoc format if applicable.
  • I've applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants