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

YouTube

Intro to JavaScript Unit Testing & BDD

Traversy Media via YouTube

Overview

Learn JavaScript unit testing and Behavior Driven Development (BDD) in this course. Understand different types of testing and the Red, Green, Refactor approach. Gain hands-on experience with Mocha and Chai for testing asynchronous code. The course covers writing test suites, using fixtures, handling edge cases, and working with mocks and stubs. Ideal for programmers looking to enhance their testing skills and ensure code reliability.

Syllabus

Introduction - .
Introducing Unit Testing - .
Proving Our Code Works - .
Running Your First Automated Test - .
Different Types of Testing - .
Behavior Driven Development - .
Red, Green, Refactor - .
Greater Expectations - .
Getting Started with Mocha and Chai - .
General Structure of Test Files - .
Test Suites and Test Specs - .
Writing Our First Test Suite - .
Writing Our First Test Suite Part 2 - .
Challenge: Expanding Our Expectations - .
Answer: Expanding Our Expectations - .
Making Tests Easier with Fixtures: Setup - .
Making Tests Easier with Fixtures: Teardown - .
Covering Edge Cases - .
Challenge: Writing Testable Code - .
Answer: Writing Testable Code - .
Changing Mocha’s Reporter - .
Outlining Your Test Suite - .
Watching Test Files - .
Mocks and Stubs - .
Testing Asynchronous Code - .

Taught by

Traversy Media

Reviews

Start your review of Intro to JavaScript Unit Testing & BDD

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.