Overview: Effective UI Testing for React Components
Get an overview of the topics covered in this chapter.
We'll cover the following
We have already been introduced to testing with Python and Django in the chapter “Testing the REST API.” In this chapter, the context is different because we will work with JavaScript and React to test the frontend components we have designed and implemented. This chapter will show us what to test in a frontend application and how to write tests for React UI components.
Topics covered in this chapter
Component testing in React.
Jest and the React Testing Library (RTL).
Testing form components.
Testing
post
components.Snapshot testing.
Get hands-on with 1400+ tech skills courses.