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.
After cloning this repo into your local environment, call npm install
inside project's folder.
Run npm run build
to build a library.
Run npm run test
to run unit tests. Use npm run test:watch
to restart unit tests on file save.