Testing React Applications with Jest

Testing React Applications with Jest

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 3h 36m | 500 MB

Jest is one of the best tools available for testing React applications. This course will teach you basic and intermediate Jest testing techniques, including running tests, snapshot testing, testing React components, and module mocking.

At the heart of building durable and reliable React applications is a solid understanding of testing, starting with Jest. In this course, Testing React Applications with Jest, you will learn everything you need to do to create solid tests for your React components and applications. First, you’ll learn how to install Jest on any machine, run tests with it via the command line, and integrate it with any Node project. Next, you’ll dive into the various testing techniques, including globals, mocking, and snapshot testing that you can use to make your tests more readable and efficient. Finally, you’ll explore how to use all these techniques to test React components and the applications they belong to. When you’re finished with this course, you’ll be able to immediately start writing tests for your React applications, discuss testing strategies and techniques in the workplace, and facilitate development by setting up and configuring Jest.

Table of Contents

Course Overview
1 Course Overview

Course Introduction
2 Introduction
3 Why Take This Course
4 A Look at the Demo Application
5 Get the Course Files Here
6 Course Roadmap

Understanding Testing
7 Why Testing
8 What Is Testing
9 Advantages and Disadvantages of Testing
10 Understanding Regression
11 Types of Tests
12 Summary

Introduction to Jest
13 Introduction
14 The Jest Testing Ecosystem
15 Jest vs. Mocha
16 Jest Versions
17 Jest and React – What s The Connection
18 Practical Jest Usage
19 Common Jest Pitfalls
20 Summary

Test Running with Jest
21 Jest Installation
22 Jest Installation – Demo
23 Running Tests
24 Creating Test Files
25 Jest Globals
26 Jest Globals – Demo
27 Watching for Changes
28 Setup and Teardown
29 Setup and Teardown – Demo
30 Skipping and Isolating Tests
31 Async Testing
32 Async Testing – Demo
33 Summary

Mocking Functions and Modules
34 Why Mocking
35 What Is Mocking
36 The Mocking Process
37 Mock Functions
38 Creating Mock Files
39 Mocking – Demo
40 Automatic and Manual Mocking
41 Summary

Snapshot Testing
42 What Is a Snapshot
43 How Snapshot Testing Works
44 Snapshot Testing Demo
45 Advantages and Disadavantages of Snapshot Testing
46 Updating Snapshots
47 Updating Snapshots Demo
48 Summary

Testing Components
49 Introduction
50 Building Testable Components
51 React Redux and Jest
52 React Redux Container Testing Demo
53 React Redux Display Testing Demo
54 React Renderer vs. Enzyme
55 Testing React Components
56 Building a Stateful React Component
57 Testing a Stateful React Component Demo
58 Summary

Advanced Jest Matchers
59 What Is a Matcher
60 Exploring Matchers
61 Jest Matchers Demo

Conclusion
62 Executive Summary
63 Continue Learning
64 Thank You