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

pkunze/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).

Change Log:

  • 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

Languages

  • TypeScript 76.3%
  • JavaScript 19.6%
  • HTML 4.1%