Refactor TextInput related components tests from Enzyme to React Testing Library #853
Labels
hacktoberfest
hacktoberfest2023
hacktoberfest-accepted
help wanted
Extra attention is needed
open-source
react
released
testing
Description
This issue is related to refactoring the
TextInput.test.tsx
,TextInputWithButtons.test.tsx
,Textarea.test.tsx
andTextInputWithBadges.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. Or you can find many code examples throughout other component tests using react testing library within the codebase.
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: