Can you do test-driven development with React? Can you test-drive the UI itself? And why would you even want to?

With React and some extra tools, testing at least some aspects of the UI is easy. In this video series, I’ll show you how.

I use enzyme, mocha, chai and sinon to test my react components. And I can write those tests before writing the actual components, doing the “red-green-refactor” cycle of test-driven development.

Read / watch all parts of “React TDD” here: