ES6 with Babel is awesome. JSPM is awesome. Testing is, well maybe testing is not awesome, but it is pretty darn good for your application. Karma makes testing a little more enjoyable, and with this seed app you can use JSPM and Babel to create modular, portable ES6 code and unit tests.
Clone this repo:
git clone https://github.com/hmps/karma-jspm-babel-seed.git && cd karma-jspm-babel-seed
Install all dependencies:
npm install
- Add your javascript files in the src folder.
- Add your unit tests in the test/unit folder. Make sure to name the .spec.js.
- Run
npm test
to run all the tests in your test/unit folder.