javascript-unit-testing-the-practical-guide-updated-5-2022 HD

01.06.2022
1 Getting Started 0:00 Welcome To This Course! 0:54 What Is Testing_ 5:36 Unit Testing_ What & Why_ 10:10 Unit vs Integration vs E2E Tests 16:02 A Quick Note About Test-Driven Development (TDD) 17:37 About This Course 2 Setup & Testing Software 24:20 Module Introduction 25:30 Which Tools Are Needed For Testing_ 31:58 Jest & Vitest 38:54 Installing Vitest 40:31 Course Project Setup 3 Testing Basics 48:31 Module Introduction 49:51 Basic Test File & Project Setup 56:55 Writing a First Test 1:03:50 Running Tests 1:08:08 Why Are We Testing_ 1:11:11 The AAA Pattern - Arrange, Act, Assert 1:15:47 Keep Your Tests Simple! 1:17:22 Defining Behaviors & Fixing Errors In Your Code 1:25:01 Demo_ Writing More Tests 1:29:38 Testing For Errors 1:33:52 Demo_ Adding More Tests 1:37:21 Testing For Thrown Errors & Error Messages 1:42:20 Exercise_ Problem 1:44:04 Exercise_ Solution 1:48:51 Tests With Multiple Assertions (Multiple Expectations) 1:54:10 More Practice! 1:57:05 Introducing Test Suites 2:01:45 Adding Tests To Frontend & Backend Projects 2:05:21 Module Summary 4 Writing Good Tests 2:07:44 Module Introduction 2:09:10 What To Test & Not To Test 2:15:14 Writing Good Tests - An Overview & Summary 2:19:50 Only Test _One Thing_ 2:21:53 Splitting Functions For Easier Testing & Better Code 2:26:54 Refactoring Code 2:37:08 Formulating Different Expectations 2:43:15 Module Summary 5 Integration Tests 2:45:17 Module Introduction 2:46:14 Introducing Integration Tests 2:48:38 Writing an Integration Test & Reasoning 2:54:30 Testing For Errors 2:56:59 Integration vs Unit Tests_ Finding the Right Balance 6 Advanced Testing Concepts 3:00:24 Module Introduction 3:01:31 toBe() vs toEqual() 3:05:52 The Problem With Asynchronous Code 3:12:06 Testing Asynchronous Code With Callbacks 3:17:09 Testing Asynchronous Code With Promises & async _ await 3:21:41 Getting Started with _Testing Hooks_ 3:23:24 Why Hooks_ 3:28:03 Using Testing Hooks (beforeEach, beforeAll, afterEach, afterAll) 3:34:16 Concurrent Tests 3:36:31 Module Summary 7 Mocking & Spies_ Dealing with Side Effects 3:38:19 Module Introduction 3:39:23 The Starting Project 3:43:35 The Problem With Side Effects & Tests 3:49:59 Introducing Spies & Mocks 3:52:07 Working with Spies 3:57:21 Getting Started with Mocks & Automocking 4:02:39 Note on Mocking 4:04:58 Notes on Spies 4:06:29 Custom Mocking Logic 4:14:21 Managing Custom Mock Implementations Globally (__mocks__ Folder) 4:20:33 More Mocking Functionalities 4:22:07 Module Summary 8 More on Mocking & Diving Deeper 4:23:08 Module Introduction 4:24:12 The Starting Project 4:27:15 Refresher_ Practicing Basic Tests (1) 4:33:41 Refresher_ Practicing Basic Tests (2) 4:38:24 Reasons to Mock 4:40:36 Mocking Global Values & Functions 4:48:50 Test-specific Mocking Logic 4:55:49 Mocking In Selected Places 5:01:10 Using Local Mock Values 5:08:12 Module Summary 9 Testing & The DOM (Frontend JavaScript Testing) 5:09:28 Module Introduction 5:10:43 Understanding the Problem 5:14:42

Похожие видео

Показать еще