patternfly / patternfly-react

A set of React components for the PatternFly project.
https://react-staging.patternfly.org/
MIT License
773 stars 350 forks source link

Spike: Introduce react-testing-library #6794

Closed jpuzz0 closed 2 years ago

jpuzz0 commented 2 years ago

Describe the issue. What is the expected and unexpected behavior? Provide an additional means of unit testing for contributors which focuses less on implementation details and more on how users interact with components.

jpuzz0 commented 2 years ago

This story resulted in a presentation to the patternfly team during one of our retrospectives which cited the packages involved, a sample test, and the main differences between RTL and Enzyme.

Next steps will be to create a best practices document (have this reviewed and published to PatternFly for Developers) and open a PR with the initial setup + 1 or more tests using the new libraries.