What you’ll learn
-
Write unit, integration and functional tests for React, Hooks, Contex and Redux using Jest and Enzyme.
-
Know the tradeoffs for different testing approaches and when to choose which approach.
-
Plan your React app more effectively via Test Driven Development.
-
Mock methods and modules to keep your tests isolated.
- React hooks, including useEffect, useState and useReducer
- Asynchronous functions using Axios
- Redux action creators and reducers
- Complex Redux action creators that use Redux Thunk
- React context, including context with embedded state
You will also learn how to make the most of Jest capabilities, including
- Mocking and restoring individual properties of modules
- Mocking entire modules
- Controlling which tests run using, .skip, and .only
- Running test suites multiple times with different data, using .each
Similar Course Coupons
Deal Score0
Disclosure: This post may contain affiliate links and we may get small commission if you make a purchase. Read more about Affiliate disclosure here.