Test React Components with Enzyme and Jest
Course on egghead by Tyler Clark
- 42 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 15
- Lessons
- 4.3
- Rating out of 513 ratings on egghead
- May 2018
- Published9 May 2018
About this course
Description from egghead
In this course we are going to work through properly setting up Enzyme with Jest to test rendered components. This includes the nitty gritty of making our testing environment work with various versions of React. After we get our environment setup ready, we’ll work through the different ways we can render a component within our test pages. With a rendered component we can now test component methods and properties to assert that they are what is intended.
What it covers
15 lessons
- 1Course Overview: Testing React Components with Enzyme and Jest
- 2Install Enzyme and Configure Jest
- 3Test Against Different React Releases with Enzyme
- 4Shallow Render a React Component with Enzyme
- 5Find Nodes from a Shallow Rendered Component
- 6Understand the Different Accepted Selectors in Enzyme
- 7Test Enzyme Rendered Components with Jest Snapshots
- 8Test React Component Props with Enzyme and Jest
- 9Fully Render React Components with Enzyme
- 10Test Simulated Event Handlers with Enzyme
- 11Test New Component State with setState in Enzyme
- 12Test React Component Lifecycle Methods with Enzyme
- 13Test React Component Methods with Enzyme
- 14Test Redux Connect Components with Enzyme
- 15Testing React Forms with Enzyme
Similar React courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.