egghead.io
illustration for Test React Components with Enzyme and Jest

Course

Test React Components with Enzyme and Jest

  1. 1
    Course Overview: Testing React Components with Enzyme and Jest
    1m 14s
  2. 2
    Install Enzyme and Configure Jest
    1m 12s
  3. 3
    Test Against Different React Releases with Enzyme
    1m 45s
  4. 4
    Shallow Render a React Component with Enzyme
    2m 12s
  5. 5
    Find Nodes from a Shallow Rendered Component
    2m 33s
  6. 6
    Understand the Different Accepted Selectors in Enzyme
    1m 52s
  7. 7
    Test Enzyme Rendered Components with Jest Snapshots
    2m 38s
  8. 8
    Test React Component Props with Enzyme and Jest
    3m 50s
  9. 9
    Fully Render React Components with Enzyme
    1m 58s
  10. 10
    Test Simulated Event Handlers with Enzyme
    3m 39s
  11. 11
    Test New Component State with setState in Enzyme
    1m 16s
  12. 12
    Test React Component Lifecycle Methods with Enzyme
    3m 28s
  13. 13
    Test React Component Methods with Enzyme
    1m 56s
  14. 14
    Test Redux Connect Components with Enzyme
    4m 56s
  15. 15
    Testing React Forms with Enzyme
    7m 29s

Find Nodes from a Shallow Rendered Component

Tyler Clark
InstructorTyler Clark
  • react
    React^16.0.0
  • jest
    Jest

Share this video with your friends

Send Tweet

Once we have a shallowed rendered component, we can now test that the expected nodes rendered are correct. We will use Jest’s built in assertions as well as some Enzyme shallow render methods in our tests. The render methods include .find, .exists, .children, .hasClass, and .text.

Build your Developer Portfolio and climb the engineering career ladder.
  • Search
  • Talks
  • Podcasts
  • Machine
  • Pricing
  • Store
©egghead.io
Terms & Conditions