-
Approaches to Testing React Components
http://reactkungfu.com/2015/07/approaches-to-testing-react-components-an-overview/
A great starting point to testing, looking at the main ways you can test component structure and state handling -
Simple React/Redux Testing
https://medium.com/@caljrimmer/simple-react-redux-testing-cd579d4c2103
Looks at how to test rendering, behavior, and state of an application -
Test Driven React Tutorial
http://spencerdixon.com/blog/test-driven-react-tutorial.html
Describes project setup and basic approaches, using the common stack of Webpack+Karma+Mocha+Chai+Sinon -
How to Test React.js Components
https://nemisj.com/how-to-test-react-js-components/
Covers what to test, and how to test things like props and shallow rendering -
Unit Testing a Redux App
https://www.codementor.io/reactjs/tutorial/redux-unit-test-mocha-mocking
Example ways to test pieces of a Redux app, including actions, reducers, and middleware -
React-Boilerplate Testing Docs
https://github.com/mxstbr/react-boilerplate/blob/v3.0.0/docs/testing/unit-testing.md
https://github.com/mxstbr/react-boilerplate/blob/v3.0.0/docs/testing/component-testing.md
Useful description of how to use Mocha, Expect, and Enzyme to test React and Redux code -
Reddit - "Karma/Mocha/Chai/Sinon setup"
https://www.reddit.com/r/javascript/comments/4217x6/ive_spent_six_hours_attempting_to_set_up/
Reddit user Cody_Chaos describes his approach to running unit tests under Node with Mocha, and integration tests in a browser with Karma. Includes several useful config setup snippets. -
Testing React Applications
http://12devsofxmas.co.uk/2015/12/day-2-testing-react-applications/
A long, in-depth article describing approaches and use of Tape, React TestUtils, and Enzyme -
TDD and React Components
https://medium.com/@nackjicholsonn/tdd-and-react-components-5ae5a9a5a7bf
Detailed example of using TDD to design and develop a React component, using Teaspoon for testing -
Testing Redux Applications
http://randycoulman.com/blog/2016/03/15/testing-redux-applications/
http://randycoulman.com/blog/categories/getting-testy/
A great writeup on how to specifically deal with testing pieces of a Redux app. The "Getting Testy" post series also has a lot of really good idea on how to go about writing tests and what kinds of things should be tested.