Testing React Apps
This chapter explains the basics of testing React apps. It will give us an overview of using Jest, which is a JavaScript testing framework. We will look at how you can create and run new test suites and tests. To test our React Vite project, we will also learn how to use the React Testing Library together with Vitest.
In this chapter, we will cover the following topics:
- Using Jest
- Using the React Testing Library
- Using Vitest
- Firing events in tests
- End-to-end testing