A solid test setup for React components with Mocha, Chai, Sinon, Enzyme and Jest in a Webpack/Babel application.
Branch: master
Clone or download
rwieruch Merge pull request #4 from rwieruch/greenkeeper/jsdom-13.0.0
Update jsdom to the latest version 🚀
Latest commit 55d0527 Nov 13, 2018

README.md

react-components-test-setup

Build Status Coverage Status Slack Greenkeeper badge

A solid test setup for React components with Mocha, Chai, Sinon, Enzyme and Jest in a Webpack/Babel/React application.

Read more about it: React Testing Tutorial: Test Frameworks & Component Tests

Features

  • React 16
  • Webpack 4
  • Babel
  • Staging ES Next Features
  • Hot Module Replacement
  • Testing
    • Mocha
    • Chai
    • Enzyme
    • Sinon
    • Jest
    • Unit/Integration Test (Chai, Enzyme) Watcher
    • Snapshot Test (Jest) Watcher
    • Travis CI
    • Coveralls.io

Installation

  • git clone git@github.com:rwieruch/react-components-test-setup.git
  • cd react-components-test-setup
  • npm install
  • npm start
  • visit http://localhost:8080/