Test coverage report in Typescript with Mocha and NYC
We will review how to configure NYC as a coverage report tool for a simple Typescript project using Mocha for unit tests. Let’s create a pretty standard Typescript project. $ mkdir typescript-mocha-nyc$ cd typescript-mocha-nyc $ npm init Install the Typescript dependencies. $ npm install typescript –save-dev$ npm install @types/node –save-dev Create a tsconfig.json file and…