April 2018
Beginner
536 pages
13h 21m
English
In Chapter 9, Automating Your Development Workflow, we learned the basic details of the unit tests and test-coverage reports with nyc, ts-node, Mocha, and Chai. In this chapter, we are going to learn how to test asynchronous APIs using Mocha and how to combine Mocha with other powerful tools, such as Sinon.JS, SuperTest, and Enzyme: