Skip to content

Update enzyme code to use React Testing Library #2581

Description

@joshblack

As we make our transition to React 18, it will be helpful to update code that is currently using enzyme to @testing-library/react. This is because enzyme support does not extend past React 16. However, starting in React 17, unofficial adapters have been created to help bridge the gap which are currently being used in this project.

This issue tracks the usage of enzyme across the project and will remove and replace it with an appropriate test using @testing-library/react

Checklist

  • src/testing.tsx
  • src/__tests__/Details.test.tsx
  • src/__tests__/SubNav.test.tsx
  • src/__tests__/UnderlineNav.test.tsx
  • src/__tests__/TabNav.test.tsx
  • src/__tests__/SideNav.test.tsx
  • src/__tests__/SelectMenu.test.tsx
  • src/__tests__/CircleBadge.test.tsx
  • src/__tests__/Token.test.tsx
  • src/__tests__/TextInput.test.tsx

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions