Chapter 6: Implementing Additional Tools and Plugins for Testing
In the previous chapters, we learned the basics of React Testing Library and how to test from simple to complex components using the tool. In this chapter, we will learn how to increase our productivity by using additional tools. We will install and use a few plugins to help our ability to write tests by avoiding common mistakes and following React Testing Library's best practices.
We will add a library to audit and increase application accessibility. We'll ensure we select the best React Testing Library query method with Testing Playground. Finally, we will increase our productivity by using Wallaby.js to receive rapid feedback on our tests' status from our code editor.
In this chapter, we're going to cover the following main topics:
- Using
eslint-plugin-testing-library
to follow best practices and avoid common mistakes when using React Testing Library - Using
eslint-plugin-jest...