CursosPago

Mastering JavaScript Unit Testing

03:51:31 Inglés Free 20/03/2024 55 videos

Descripción del curso

A comprehensive, beginner-friendly guide covering everything from the basics to advanced techniques. Tired of piecing together disconnected tutorials or dealing with rambling, confusing instructors? This course is for you! It's perfectly structured into a series of bite-sized, easy-to-follow videos that cover both theory and practice.
  1. Explore the fundamentals of unit testing and its benefits.
  2. Master core unit testing techniques and best practices.
  3. Craft maintainable, robust, and trustworthy tests that deliver value.
  4. Learn to execute and navigate tests effectively in VSCode.
  5. Perform positive, negative, and boundary testing for comprehensive coverage.
  6. Evaluate code coverage to ensure comprehensive testing.
  7. Create parameterized tests for versatile testing scenarios.
  8. Isolate code with mocks and learn when to use them.
  9. Spy on functions to gain insights into their behavior.
  10. Improve code quality using static analysis tools.
  11. Utilize Prettier to format your code consistently.
  12. Implement ESLint to catch code quality issues early.
  13. Prevent type errors in your code using TypeScript.
  14. Automate code quality checks using Husky.

Curriculum

Section 1: Module 1

  • 02 - Welcome 01:23
  • 03 - Prerequisites 00:42
  • 04 - Course Structure 02:16
  • 05 - How to Take This Course 00:59
  • 06 - Setting Up the Testing Environment 00:34
  • 07 - Starter Project 00:55
  • 08 - Introduction 01:40
  • 09 - What is Unit Testing 05:22
  • 10 - Types of Tests 03:15
  • 11 - Choosing a Testing Framework 01:40
  • 12 - Setting Up Vitest 01:15
  • 13 - Writing Your First Tests 09:21
  • 14 - Exercise: Testing fizzBuzz 05:57
  • 15 - Test-driven Development 07:11
  • 16 - Exercise: Testing Factorial 05:02
  • 17 - Running Tests 04:24
  • 18 - Navigating Tests in VSCode 04:12
  • 19 - Code Coverage 04:34
  • 20 - Introduction 00:55
  • 21 - Characteristics of Good Unit Tests 04:25
  • 22 - Using Matchers 03:07
  • 23 - Writing Good Assertions 07:18
  • 24 - Exercise: Testing getCoupons 09:01
  • 25 - Positive and Negative Testing 07:20
  • 26 - Exercise: Testing validateUserInput 07:19
  • 27 - Boundary Testing 02:58
  • 28 - Exercise: Testing isValidUsername 05:46
  • 29 - Exercise: Testing canDrive 06:36
  • 30 - Parameterized Tests 04:57
  • 31 - Exercise: Parameterized Tests 04:21
  • 32 - Testing Asynchronous Code 04:30
  • 33 - Setup and Teardown 02:43
  • 34 - Exercise: Testing a Stack 09:55
  • 35 - Introduction 00:32
  • 36 - Creating Mock Functions 05:39
  • 37 - Exercise: Working with Mock Functions 01:53
  • 38 - Mocking Modules 05:02
  • 39 - Exercise: Testing getShippingInfo 05:29
  • 40 - Interaction Testing 03:24
  • 41 - Exercise: Testing submitOrder 06:53
  • 42 - Partial Mocking 07:33
  • 43 - Spying on Functions 05:38
  • 44 - Clearing, Resetting, and Restoring Mocks 04:56
  • 45 - To Mock or Not to Mock 01:16
  • 46 - Mocking Dates 03:52
  • 47 - Exercise: Testing getDiscount 01:56
  • 48 - Introduction 00:34
  • 49 - What are Static Analysis Tools 01:13
  • 50 - Formatting Code with Prettier 05:11
  • 51 - Linting Code with ESLint 09:53
  • 52 - Catching Type Errors with TypeScript 06:33
  • 53 - Running ESLint on TypeScript 06:14
  • 54 - Automating Code Quality Checks with Husky 03:57
  • 55 - Running Tests on Push 01:34
  • 56 - Course Wrap Up 00:26

About the Instructor

Instructor

codewithmosh (Mosh Hamedani)

Course

$0.00

$8.00
Que esta incluido?
  • Streaming Multiplataforma
  • Acceso de por vida
  • Soporte al cliente
  • Actualizaciones gratuitas