Skip to content
JS

Test React Components with Enzyme and Jest

Course on egghead by Tyler Clark

View on egghead (opens in a new tab)
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
  1. 1Course Overview: Testing React Components with Enzyme and Jest
  2. 2Install Enzyme and Configure Jest
  3. 3Test Against Different React Releases with Enzyme
  4. 4Shallow Render a React Component with Enzyme
  5. 5Find Nodes from a Shallow Rendered Component
  6. 6Understand the Different Accepted Selectors in Enzyme
  7. 7Test Enzyme Rendered Components with Jest Snapshots
  8. 8Test React Component Props with Enzyme and Jest
  9. 9Fully Render React Components with Enzyme
  10. 10Test Simulated Event Handlers with Enzyme
  11. 11Test New Component State with setState in Enzyme
  12. 12Test React Component Lifecycle Methods with Enzyme
  13. 13Test React Component Methods with Enzyme
  14. 14Test Redux Connect Components with Enzyme
  15. 15Testing React Forms with Enzyme

Similar React courses

  1. Build a Server Rendered + Code Split App in React with React Universal Component

    egghead · Tim Kindberg · 13 lessons · 5.0 from 2 ratings · Dec 2017

    45 minSubscription
    egghead135.0 (2)Dec 2017
  2. Leverage New Features of React 16

    egghead · Nik Graf · 12 lessons · Sept 2017

    39 minSubscription
    egghead12Sept 2017
  3. Add Internationalization (i18n) to a React app using React Intl

    egghead · Damon Bauer · 11 lessons · 5.0 from 3 ratings · Jul 2017

    38 minSubscription
    egghead115.0 (3)Jul 2017
  4. Learn React Router v5

    Codecademy · 1 lessons · Jan 2023

    Beginner1 h
    Codecademy1Jan 2023
  5. Beginner1 h
    Codecademy2Oct 2022
  6. Beginner1 h
    Codecademy1Oct 2022
  7. Build Your First React Website

    Coursera · Harrison Kong · Jun 2020

    Intermediate1 h 30 min
    CourseraJun 2020
  8. Intermediate1 h 30 min
    CourseraSept 2020

A hyphen means the provider's catalogue does not state the value.

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.

    Compare