Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

[ui-components] Replace enzyme with react-testing-library #49

Open
laurenbarker opened this issue May 6, 2020 · 2 comments
Open

[ui-components] Replace enzyme with react-testing-library #49

laurenbarker opened this issue May 6, 2020 · 2 comments
Labels
🔩 tools Build system and infrastructure tasks and bugs

Comments

@laurenbarker
Copy link
Collaborator

What

Replace enzyme with react-testing-library for tests in ui-components.

Why

We have been piloting React Testing Library in Console and have had a very positive experience. It encourages good test practices and is a lot simpler to use than enzyme.

@laurenbarker
Copy link
Collaborator Author

@j-low what do you think of switching to RTL for ui-components?

@tharun208
Copy link
Contributor

tharun208 commented Feb 28, 2021

@laurenbarker, I refactored the Avatar component tests using RTL #227. And refactoring other components unit tests will come as a separate pr.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔩 tools Build system and infrastructure tasks and bugs
Projects
None yet
Development

No branches or pull requests

3 participants