mocha-chai-ts-starter

Mocha + Chai + TypeScript + VS Code Debug

Stars
10

This project uses mocha, chai, typescript and vs code debug toghether, so you can write your api tests easily.

This is useful for scenarios when you've some api developed in python for example, but you'd prefer to develop tests in typescript/javascript.

Another use case is when you've some legacy api and you want to develop some tests to make [risk free change] of your legacy api possibel!

You can use wide variety of chai plugins alongside with ECMA 2018 features!

To start, take a look at test.ts

Requirements:

1- Node JS

2- npm install typescript -g

3- git

4- VS Code

Steps:

1- Clone to repo using git clone https://github.com/ysmoradi/mocha-chai-ts-starter.git

2- Run npm install

3- Run npm test

4- In VS Code, press F5 to start debugging.