karomamczi / webpack-karma-mocha-chai-sinon

Unit Testing Suite for ES6 with Webpack and Karma (Mocha, Chai, Sinon)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit Testing Suite for ES6 with Webpack and Karma (Mocha, Chai, Sinon)

Description

This repository covers configuration for an ES6 library project using:

  • Webpack as a bundler,
  • Karma as a test runner,
  • Mocha as a testing framework,
  • Chai as an assertion library,
  • Sinon as standalone test spies, stubs and mocks.

Installation

After cloning this repo into your local environment, call npm install inside project's folder.

Library building

Run npm run build to build a library.

Unit testing

Run npm run test to run unit tests. Use npm run test:watch to restart unit tests on file save.

About

Unit Testing Suite for ES6 with Webpack and Karma (Mocha, Chai, Sinon)

License:MIT License


Languages

Language:JavaScript 100.0%