git clone
npm install # install all modules
npm test # single run of tests
npm watch:test # watch tests on file changes
some additional learnings
- create grouped-katas-spec.js to see if test setup is working at all
- exclude node_modules for faster indexing
- have a look at uncle bob -> clean code
- add
./node_modules/.bin
toPATH
- use
babel src/grouped-katas.js
to see what gets generated - opinion: have tests in same directory as source to get rid of
../../../src/some/where/source.js
imports - renderer = TestUtils.createRenderer() and renderer.getRenderOutput() to check virtual dom
Question
- transform via babel or browserify (reactify)? -> reactify makes sense for consistency (using babelify+reactify)