Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

add testing framework to adjust state and works with hooks #149

Closed
KevinDanikowski opened this issue Dec 26, 2019 · 2 comments
Closed

add testing framework to adjust state and works with hooks #149

KevinDanikowski opened this issue Dec 26, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request released

Comments

@KevinDanikowski
Copy link

It was found that react-test-renderer is limited in its functionality in changing state to test further functionality. As a result the two best options were enzyme and react-testing-library which facebook supports.

After a team discussion, it was decided to do a POC with react-testing-library, support for this decision can be found here: https://medium.com/@boyney123/my-experience-moving-from-enzyme-to-react-testing-library-5ac65d992ce

@amclin amclin added the enhancement New feature or request label Jan 13, 2020
@amclin
Copy link
Owner

amclin commented Jan 13, 2020

Currently the only testing framework (on top of jest) is react-test-renderer. enzyme is specifically not used because it still can't handle React hooks:
enzymejs/enzyme#2011

@testing-library/react-testing-library seems to be a suitable alternative. Regardless of solution chosen, I'd prefer to see only one such framework in use. It gets very confusing for developers when multiple frameworks are mixed, as they often have different testing patterns and requirements for bootstrapping for test cases - especially for asynchronous tests.

@amclin
Copy link
Owner

amclin commented Jan 15, 2020

Fixed by #179

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

2 participants