SJammy
12/29/2019 - 1:40 PM

SERVER TESTING STACK

SERVER TESTING STACK
Summary
In this lesson we covered a set of technologies used for testing a Node server. These included:

Chai - a library for extending the built in Node assertion library
jsdom - a library for interacting and testing the DOM returned by the server (this functionality is encapsulated in our parseTextFromHTML helper function).
async / await - a pattern for making asynchronous code more readable
SuperTest - a library for making Node server requests and testing their responses