Loading
What's changed in Test React Components with Jest and React Testing Library
Transcript
What's changed in Test React Components with Jest and React Testing Library
Test React Components with Jest and React Testing Library
1.
What's changed in Test React Components with Jest and React Testing Library
2.
Intro to Test React Components with Jest and React Testing Library
3.
Render a React Component for Testing
4.
Use Jest DOM for Improved Assertions
5.
Use DOM Testing Library to Write More Maintainable React Tests
6.
Use React Testing Library to Render and Test React Components
7.
Debug the DOM State During Tests using React Testing Library’s debug Function
8.
Test React Component Event Handlers with fireEvent from React Testing Library
9.
Improve Test Confidence with the User Event Module
10.
Test Prop Updates with React Testing Library
11.
Assert That Something is NOT Rendered with React Testing Library
12.
Test Accessibility of Rendered React Components with jest-axe
13.
Mock HTTP Requests with jest.mock in React Component Tests
14.
Mock HTTP Requests with MSW
15.
Mock react-transition-group in React Component Tests with jest.mock
16.
Test componentDidCatch Handler Error Boundaries with React Testing Library
17.
Hide console.error Logs when Testing Error Boundaries with jest.spyOn
18.
Ensure Error Boundaries Can Successfully Recover from Errors
19.
Use React Testing Library’s Wrapper Option to Simplify using rerender
20.
Test Drive the Development of a React Form with React Testing Library
21.
Test Drive the Submission of a React Form with React Testing Library
22.
Test Drive Mocking react-router’s Redirect Component on a Form Submission
23.
Test Drive the API Call of a React Form with React Testing Library
24.
Test Drive Assertions with Dates in React
25.
Use Generated Data in Tests with tests-data-bot to Improve Test Maintainability
26.
Test Drive Error State with React Testing Library
27.
Write a Custom Render Function to Share Code between Tests and Simplify Tests
28.
Test React Components that Use the react-router Router Provider with createMemoryHistory
29.
Initialize the `history` Object with a Bad Entry to Test the react-router no-match Route
30.
Create a Custom render Function to Simplify Tests of react-router Components
31.
Test a Redux Connected React Component
32.
Test a Redux Connected React Component with Initialized State
33.
Create a Custom Render Function to Simplify Tests of Redux Components
34.
Test a Custom React Hook with React’s Act Utility and a Test Component
35.
Write a Setup Function to Reduce Duplication of Testing Custom React Hooks
36.
Test a Custom React Hook with renderHook from React Hooks Testing Library
37.
Test Updates to Your Custom React Hook with rerender from React Hooks Testing Library
38.
Test React Portals with within from React Testing Library
39.
Test Unmounting a React Component with React Testing Library
40.
Write React Application Integration Tests with React Testing Library
41.
Improve Reliability of Integration Tests using find* Queries from React Testing Library
42.
Improve Reliability of Integration Tests Using the User Event Module