Kent C. Dodds
Utah
1 wife, 3 kids
PayPal, Inc.
@kentcdodds
with Mocha, Enzyme, and Chai
Mocha: Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser.
Enzyme: A JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.
Chai: Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
chai-enzyme: Chai.js assertions for enzyme.
Sinon: Standalone test spies, stubs, and mocks for JS.
sinon-chai: Chai.js assertions for sinon.
Data
User
Props
Four inputs to React Components
Context
Component
$ git clone https://github.com/kentcdodds/react-mocha-workshop.git
$ cd react-mocha-workshop
$ git checkout start
$ npm install
Now open the INSTRUCTIONS.md up in your favorite editor...