A boilerplate dev environment for typescript, mocha & chai and karma for 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.
The purpose is to have the SAME mocha & chai unit tests written in typescript or javascript using import ES6/ES2015 modules (e.g. common.js/node.js/webpack) AND then have those unit tests evaluated on the server side (node.js) and client side (via the Chrome browser) automatically by the Karma test runner.
- @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-webpack
- mocha
- standard
- typescript
- webpack
dependencies in package.json use minimum version
dependencies in package.json use exact version number as the last working version
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.