Refactor tests from Enzyme to React Testing Library for Dropdownable and DropdownMenuItem components #840
Labels
good first issue
Good for newcomers
hacktoberfest
hacktoberfest2023
hacktoberfest-accepted
released
testing
Description
This issue is related to refactoring the
Dropdownable.test.tsx
andDropdownMenuItem.test.tsx
files.We've recently been migrating our tests from Jest + Enzyme to Jest + testing-library/react to support a full migration to React 18.
You may refer to this previous PR beginning the migration for code examples - #771.
Acceptance Criteria
Refactor the test to use React Testing Library instead of Enzyme (which is no longer supported with React 18).
More information: Migrate from Enzyme
How to Contribute
Please review the contributing documentation beforehand.
Steps to Contribute:
npm run test -- -u
and include the updated tests in your commit.refactor: <component_name> tests
.The text was updated successfully, but these errors were encountered: