Skip to content

SpencerCDixon/react-testing-starter-kit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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 git@github.com:SpencerCDixon/react-testing-starter-kit.git 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.

Tooling

This starter kit uses:

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

About

React/Webpack react starter kit to get up and going with TDD quickly. Uses Chai, Mocha, Sinon, Enzyme, and Karma. OUTDATED --> Use Jest!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published