Pure functions are trivially testable, and most of Redux is pure functions — which means a well-architected Redux application has very little untestable code. After this lesson you can write Jest unit tests for Redux reducers using deep-freeze to catch mutation bugs, use Enzyme to shallow-render a component and simulate click events, verify mock functions were called correctly with jest.fn(), and add a snapshot test that catches unintended UI regressions.
By the end of this module, you will master the following architectural patterns and implementation details.
Enroll in the course to unlock full access
Mastery tools are available to enrolled students.
Enroll to Unlock Quizzes