How to test React components with Mocha, Chai & Enzyme

added by JavaScript Kicks
7/28/2019 2:50:24 PM

1651 Views

Recommended alternative: Instead of Mocha/Chai, using Jest as test runner and assertion library for unit, integration and snapshot tests. Before setting up the test setup with different testing libraries and writing the React component tests, you will need a simple React application which can be tested in the first place.


0 comments