The Git tag for this section is extracting-test-helpers.
It's time to dry up our code. We'll do this in two ways:
- Replace our stub and spy with Jest's built-in spy functionality
- Extract repeated test code into their own files that can be reused across test suites