May 2019
Intermediate to advanced
496 pages
10h 38m
English
In the first chapter, our test suites shared common code for constructing a DOM container element before each test. This element was used as the React root element. By doing this for each test, we avoided modifying global state. Let's extract that code so that we can re-use it across all of our test suites.
The shared code can be split into four parts:
Read now
Unlock full access