Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Jest and Enzyme Testing

( Duration: 2 Days )

This 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. You will then explore how to do tests, code coverage, and snapshots. The course concludes with a dive into test mocking, shallow rendering of components, and full rendering.

By attending Jest and Enzyme Testing workshop, delegates will learn to:

  • 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

The Jest and Enzyme Testing class is ideal for:

  • Web Developers and Q/As looking to adopt Jest and Enzyme.

COURSE AGENDA

1

Class Architecture

  • React with create-react-app
  • Enzyme
  • Jest
  • Node
  • VSCode
  • Other tools
2

Test Application

  • Front-end with React
  • Simple back-end
  • Focusing on unit testing components
3

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
4

Code Coverage

  • What is code coverage?
  • Snapshots
5

Test Mocking

  • Unit testing vs integration testing
  • Mocks help maintain boundaries
  • Mocking components
  • Mocking functions
  • Asynchronous functions
  • To mock, or not to mock?
6

Enzyme and shallow rendering

  • Role of Enzyme
    • Enzyme vs Jest, Enzyme with Jest
  • Enzyme Configuration
  • Shallow rendering of a component
7

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
8

Putting it all together

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X