Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

JavaScript Unit Testing Tutorial for Beginners

Programming with Mosh via YouTube

Overview

Dive into a comprehensive JavaScript unit testing tutorial designed for beginners. Learn the fundamentals of unit testing, including its importance in reducing bugs and improving code quality. Explore different types of tests, choose an appropriate testing framework, and set up Vitest for your projects. Follow along with practical exercises, such as testing the fizzBuzz function and implementing Test-Driven Development. Gain hands-on experience writing your first test and discover how to apply unit testing principles to enhance your JavaScript coding skills.

Syllabus

Course Intro
Prerequisites
Course Structure
How to Take This Course
Setting Up the Testing Environment
Starter Project
Introduction to Unit Testing
What is Unit Testing?
Types of Tests
Choosing a Testing Framework
Setting Up Vitest
Writing Your First Test
Exercise: Testing fizzBuzz
Test-Driven Development
Exercise: Testing Factorial

Taught by

Programming with Mosh

Reviews

Start your review of JavaScript Unit Testing Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.