nikita-rogatnev / react-components-test-setup

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

Home Page:https://www.robinwieruch.de/react-testing-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

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

https://www.robinwieruch.de/react-testing-tutorial


Languages

Language:JavaScript 100.0%