Setting up Mocha
It's great that we can use Postman and Compass to test our API manually, but as we add more complex endpoints, it'd be much easier to test them automatically.
To do this, we will set up some unit tests using the Mocha JavaScript testing framework.
To install it, let's run the following:
$ npm i -D mocha@5
Click to load comments...