Skip to content

sourceallies/react-tdd-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A TDD example using React, Karma, PhantomJS, Jasmine, and Sinon.

Setup instructions:

git clone [email protected]:sourceallies/react-tdd-example.git
cd react-tdd-example
npm install

To build the bundle:

npm run build

To run tests:

npm test

Each "feature" is added in two separate commits. The first commit, prefixed with "Failing", adds the failing test for the feature. The second commit, prefixed with "Passing", implements the feature, causing the previously failing test to pass.

To easily step through commits, use a script like this:

#!/bin/bash
git checkout master
git checkout $1

And specify the commit hash like so:

./checkout.sh HASH

The list of commit hashes can be found here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published