The video for this lesson is currently being updated, please read the transcript instead.

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

Test location

To view the complete lesson you'll need to login or join this course.


Click to load comments...