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.
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.
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.