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