Skip to content

rwieruch/visual-regression-testing-react-storybook

Repository files navigation

react-components-test-setup

Build Status Coverage Status

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 3
  • Babel
  • Staging ES Next Features
  • Hot Module Replacement
  • Testing
    • Mocha
    • Chai
    • Enzyme
    • Sinon
    • Jest
    • Unit/Integratio Test (Chai, Enzyme) Watcher
    • Snapshot Test (Jest) Watcher
    • Travis CI
    • Coveralls.io

Installation

  • git clone [email protected]:rwieruch/react-components-test-setup.git
  • cd react-components-test-setup
  • npm install
  • npm start
  • visit http://localhost:8080/