Closed jduffy3 closed 1 year ago
The previous implementation was testing implementation details; The hope is by being a functional component the code is simpler and the tests now verify behavior rather than implementation details.
for reference: https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/#triggering-class-methods-in-tests-wrapperinstance
:tada: This PR is included in version 2.5.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
The previous implementation was testing implementation details; The hope is by being a functional component the code is simpler and the tests now verify behavior rather than implementation details.
for reference: https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/#triggering-class-methods-in-tests-wrapperinstance