At this point, we have tested the backend of our application using both unit tests and integration tests (with SuperTest). We have also tested our client in complete isolation, thanks to the usage of Sinon.JS. However, our application can still fail if something is wrong in the presentation layer (the graphic user interface). In this section, we are going to learn how we can use some libraries to help us to test each of the components of our graphic user interface.
The companion source code includes the following React component:
import * as React from "react"; import { MathClient } from "./math_client"; ...