Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.14 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.14 KB

How to setup testing using Typescript, Mocha, Chai, Sinon, Karma and Webpack.

Sample source code based on blog post: How to setup testing using Typescript, Mocha, Chai, Sinon, Karma and Webpack

To get started:

  1. Install NodeJS
  2. Open the command line of your choice and cd to the root directory of this repo on your machine
  3. npm install webpack -g - Installs webpack
  4. Download this repo (clone / fork)
  5. npm install - Installs packages (post install step added to package.json configuration file in order to execute tsd install after installing packages)
  6. npm test - Will execute karma start and run the tests (this step has been added to the package.json configuration file).
  7. npm run coverage - Will execute karma start and run the tests and generate a coverage report (this step has been added to the package.json configuration file).

Change Log:

  • Mar 22, 2017 - Add coverage for karma tests
  • Mar 17, 2015 - Added post install step to automatically run typings install after npm install.