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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive 2.5-hour course on JavaScript unit testing and Behavior Driven Development (BDD). Master the fundamentals of automated testing, explore different testing types, and learn the Red-Green-Refactor methodology. Get hands-on experience with Mocha and Chai, write test suites and specs, and tackle challenges to expand your skills. Cover advanced topics like fixtures, edge cases, mocks, stubs, and asynchronous code testing. Enhance your development process with practical techniques for writing testable code, using custom reporters, and implementing file watching for efficient testing workflows.

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.