Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (33 loc) · 1.3 KB

01-course-overview-testing-react-components-with-enzyme-and-jest.md

File metadata and controls

41 lines (33 loc) · 1.3 KB

Course Overview: Testing React Components with Enzyme and Jest

📹 Video

The Goal

In React, we want our components to be

  • Composable
  • Reusable
  • Accessible
  • Intuitive
  • Predictable

In this course, we will learn how to make components that manifest the above characteristics.

Enzyme

Throughout the course, we'll be using Enzyme.

Enzyme allows us to test both how our components work and how users will interact with them.

What you can expect

Throughout this course, you will learn about

  • Enzyme initial setup
  • Enzyme configuration for specific versions of React
  • Accepted selectors
  • Rendering methods
  • Working with React lifecycles
  • Component state
  • Component props
  • Working with Redux-connected components
  • Using Jest snapshots to
    • Guarantee the layout of component elements
    • Replicate user interaction
    • Test class methods

In the final lesson, we will recap these concepts through the testing of both a basic React form that sends an AJAX request on submit.

Resources