Reading Class 19 - martinbalke-401-adavanced-js/seattle-javascript-401n14 GitHub Wiki

React Testing and Deployment

There are two primary ways to test a React app. You can test individual components by rendering them in a fake DOM tree and then counting to see that the correct amount of DOM nodes exist and have the correct properties. The other way you can test a React app is to take a "snapshot" of the DOM and then compare future tests to this snapshot. If the two instances don't match then you will know that something is not rendering correctly.