React/Webpack react starter kit to get up and going with TDD quickly. Uses Chai, Mocha, Sinon, Enzyme, and Karma. OUTDATED --> Use Jest!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

OUTDATED!!! --> Use Jest, it's great :-)

This starter kit goes with a blog post I wrote on how to set up TDD React environment. The blog post can be found here.

Goal: Goal of this starter kit is just to act as an example of a pretty robust testing environment for React.

Getting Started

git clone myProject
cd myProject

nvm use 5.1.0    # make sure to use v4 or greater
npm install

# open split terminal window
npm run dev      # get webpack server running
npm run dev:test # to get karma test server going

Note The webpack config in this project is not out of the box ready for production. You will want to set up Plugins like UglifyJS and a compile script that compiles webpack in production mode.


This starter kit uses:

  • Mocha
  • Chai
  • Sinon
  • Enzyme
  • Karma
  • Webpack