Skip to content
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

decide react unit testing tool #13

Open
hwclass opened this issue Nov 1, 2016 · 2 comments
Open

decide react unit testing tool #13

hwclass opened this issue Nov 1, 2016 · 2 comments
Assignees
Labels

Comments

@hwclass
Copy link
Owner

hwclass commented Nov 1, 2016

No description provided.

@altaywtf
Copy link
Collaborator

altaywtf commented Nov 2, 2016

I think Jest is suitable for this project in general. Both on the server and client side assertions.

However, if we are going to examine all kind of behaviours of a React component (like changes in the state and listening the method calls) I think we can also add enzyme for its useful api.

I've recently updated testing setup of my React-Redux applications from karma-mocha-chai-enzyme to just jest - enzyme. Only downside is Jest uses something like JSDOM so my tests are not running in the browser.

@hwclass
Copy link
Owner Author

hwclass commented Nov 2, 2016

After a little of my experiences actually, it would be nice to choose enzyme with jest. I have seen the utility tool, you're right. I think it is a kind of a cheerio. Cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants