This is a template that can be used for developing node.js applications. It's set up to start testing your code from the gecko.
It comes with some example code so you can run all the types of tests, to see they function correctly.
Node version: 10.16.0
Npm version: 6.9.0
- testrunner: Mocha
- testing framework: Chai
- Coverage tooling: Istanbul
- Mutation testing framework: Stryker
Install dependencies using npm with the command: npm i
Your project code should be placed inside the src directory or the directory you are adding it to must be added to the nyc configuration in the package.json.
Tests should be placed inside the test directory or the directory you are adding them must be added to the mocha configuration in the package.json (scripts) and stryker.conf.js files.
npm test
or npm t
npm run coverage
npm run stryker