Skip to content

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

License

Notifications You must be signed in to change notification settings

thitemple/TypescriptMochaWebpackDemo

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •