SkillAgentSearch skills...

TypescriptMochaWebpackDemo

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

Install / Use

/learn @thitemple/TypescriptMochaWebpackDemo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.
View on GitHub
GitHub Stars66
CategoryDevelopment
Updated5mo ago
Forks27

Languages

TypeScript

Security Score

92/100

Audited on Oct 30, 2025

No findings