Jest and Enzyme Testing

The Jest and Enzyme Testing training course is designed to provide a comprehensive training on testing with Jest and Enzyme. This course begins with an introduction to both Jest and Enzyme including a review of class architecture, test applications and using Jest and Enzyme to validate accessibility requirements. Students will then explore how to do tests, code coverage, and snapshots. Finally, the course delves into test mocking, shallow rendering of components, and full rendering. This course uses a mixture of lecture and hands-on labs to reinforce learning.

Course Summary

Purpose: 
Provide a solid foundation in the workings of the Jest testing framework along with the testing utility Enzyme.
Audience: 
Web Developers and Q/As looking to adopt Jest and Enzyme.
Skill Level: 
Learning Style: 

Workshops are instructor-led lab-intensives focused on the practical application of technologies through the facilitation of a project-related lab. Workshops are just the opposite of Seminars. They deliver the highest level of knowledge transfer of any format. Think wide (breadth) and deep (depth).

Workshop help
Duration: 
2 Days
Productivity Objectives: 
  • Use Jest for basic testing
  • Test asynchronous functionality with Jest
  • Set up and work with Enzyme
  • Use Enzyme to test React components
  • Compare shallow and full rendering of components in Enzyme
  • Establish code coverage in testing

What You'll Learn

In the Jest and Enzyme Testing training course you’ll learn:

  • Class Architecture
    • React with create-react-app
    • Enzyme
    • Jest
    • Node
    • VSCode
    • Other tools
  • Test Application
    • Front-end with React
    • Simple back-end
    • Focusing on unit testing components
  • Starting with Jest
    • Using Jest/Enzyme to validate accessibility requirements
    • Running tests under Jest
    • Jest Testing Outline
      • Discover()
      • It() / test()
      • Running code before and after tests
    • Matchers
    • Reporters
  • Code Coverage
    • What is code coverage?
    • Snapshots
  • Test Mocking
    • Unit testing vs integration testing
    • Mocks help maintain boundaries
    • Mocking components
    • Mocking functions
    • Asynchronous functions
    • To mock, or not to mock?
  • Enzyme and shallow rendering
    • Role of Enzyme
      • Enzyme vs Jes, Enzyme with Jest
    • Enzyme Configuration
    • Shallow rendering of a component
  • Full rendering
    • Unit vs integration testing re-visited
    • When should I use full rendering?
    • The full API vs the shallow API
    • Accessing subcomponents in a full render
  • Putting it all together
    • Capstone Lab Exercise

Get Custom Training Quote

We'll work with you to design a custom Jest and Enzyme Testing training program that meets your specific needs. A 100% guaranteed plan that works for you, your team, and your budget.

Learn More

Chat with one of our Program Managers from our Boulder, Colorado office to discuss various training options.

DevelopIntelligence has been in the technical/software development learning and training industry for nearly 20 years. We’ve provided learning solutions to more than 48,000 engineers, across 220 organizations worldwide.

About Develop Intelligence
Di Clients
Need help finding the right learning solution?   Call us: 877-629-5631