A boilerplate dev environment for TypeScript and JavaScript, mocha, chai and sinon testing using es6 modules for karma unit testing (tdd/bdd)
The node.js development environment has been set-up as a working example for writing and evaluating mocha & chai unit tests.
npm install
npm test
- @types/chai
- @types/mocha
- chai
- karma
- karma-chai
- karma-chrome-launcher
- karma-coverage
- karma-mocha
- karma-mocha-reporter
- karma-typescript
- karma-typescript-es6-transform
- karma-typescript-preprocessor
- karma-sinon
- karma-webpack
- mocha
- sinon
- standard
- typescript
- webpack
dependencies in package.json use minimum version
dependencies in package.json use exact version number as the last working version
Subject to :- karma-runner/karma#2474 (comment)
ISC License
Copyright (c) 2017, David Young
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.