simonsmith / react-component-unit-test

Unit testing React components with shallow rendering

Home Page:http://simonsmith.io/unit-testing-react-components-without-a-dom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit testing React components with shallow rendering

A simple example of unit testing two React components in Mocha with shallow rendering

npm install
npm test

About

Unit testing React components with shallow rendering

http://simonsmith.io/unit-testing-react-components-without-a-dom/


Languages

Language:JavaScript 98.4%Language:Vim Script 1.6%