Technical requirements
For the examples in this chapter, you will need to have Node.js installed on your machine. We will be using the create-react-app
CLI tool and the Next.js React framework (https://nextjs.org/) for all code examples. Please familiarize yourself with Next.js before starting the chapter if needed. Code snippets will be provided throughout the chapter to help you understand the code under test, but the objective is understanding how to test the code.
You can find code examples for this chapter here: https://github.com/PacktPublishing/Simplify-Testing-with-React-Testing-Library/tree/master/Chapter07.