-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests #6
Comments
my vote is for jest |
@samcdavid have you used jest? |
very little, but I am opposed to the mocha ecosystem. I just want to include one thing that handles testing. Not 10 that no one fully knows how to use other than include everything and hope it works. |
I would also like to consider Enzyme, as it seems to have a lot of momentum: https://github.com/airbnb/enzyme I think its higher level than mocha or jest. Not sure really what the differentiator is for all of them though. I haven't done much testing of rendered components, rather mostly the strict business logic of the actions and stores... [edit] |
@bbrock25 @samcdavid current test suite looks like:
Thing's ive been investigating:
It also might be worthwhile to read through this convo folks in the |
This PR completes the initial refactoring of the test suite. The readme has been updated to reflect the changes...but long and short, this is the solution we landed on:
|
How do we want to handle the tests in our app?
Should we try out mocha/enzyme or stick with jest?
Also, is there a need for the
tests/
directory anymore? It seems that the documentation suggests having the specs closer to the code.If its ok to remove that directory, and start investigating a good testing setup for react apps, I can get started on putting something together. I enjoyed using mocha for testing redux actions and reducers on the last app we worked on fwiw.
The text was updated successfully, but these errors were encountered: