DEV Community

Discussion on: Writing Your First React Test

halented profile image
Hal Dunn Author

Thanks for the input! Because Jest comes with React, I assumed it was the test framework most widely used. Do you think taking the time to write unit tests in Jest is worth it if you move integration tests to Mocha, or would you write all tests in one framework?

stevetaylor profile image
Steve Taylor

Having used both Jest and Mocha extensively, I’d move all front-end tests to Mocha and run them in a browser. Having two different test runners is a hassle.