A small project that implements some basic Algos and Data Structures in TS.
npm i typescript -g //install typescript globally
tsc --init // initialize a new typescript project
tsc //transpile typsecript into javascript
npm i tslint -g
tslint --init
Mocha is a Unit Testing library and Chai is an Assertions library.
npm install chai mocha ts-node @types/chai @types/mocha --save-dev
Running tests with mocha:
mocha -r ts-node/register test/**/*Test.ts
npm install nyc -g
This is compatible with WebSotrm's "run w/ coverage option". Also works in IntelliJ.