- Practice writing tests with RTL
- Practice implementing a Jest snapshot
- Catch any bugs in your project's React code
Now that you've written Jest tests to cover your frontend logic, you'll write React Testing Library tests to ensure your components work as expected.
- Take a look at the React components that make up the User Management section of your page. Write down 6 things that a user should expect to see, or how they can expect something to behave, in this section.
- Your challenge is to write an RTL test for each of these listed items. You can either add these to your Users.spec.js file, or create a new file for this.
- Write at least one Jest snapshot test that tests a component in this section.