Test skeleton for React components with Karma running Tape tests on PhantomJS, with help from Babel and Webpack.
Isparta code coverage is also set up and configured to run on Travis CI, submitting results to Codecov.
git clone https://gist.github.com/593d7d70331f95bf62ff.git react-test-skeleton
cd react-test-skeleton
mkdir src test
mv index.js src/
mv index-test.js test/
npm install
npm test
Code goes in src/
, tests go in *-test.js
files in test/
.
In test files top-level 'src'
imports are aliased to the src/
directory for convenience.