Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to write JavaScript unit tests using Jest in this comprehensive tutorial video. Discover the importance of unit testing, set up your development environment with Node.js and npm, and write your first test cases. Explore the process of testing multiple functions, understand the concept of single responsibility in testing, and generate coverage reports. Gain practical insights into Jest's features and best practices for effective JavaScript unit testing to improve your code quality and reliability.
Syllabus
Intro
Welcome
Lesson Goal
Why Write Tests?
Quick Note
Install Node for npm
Checking your Node install
A Simple Function
Install Jest
Your First Unit Test
How to Run Tests
What is a Unit Test?
Testing a 2nd Function
Testing a 3rd Function
Drilling Down to a Single Responsibility
Generating a Coverage Report
Wrap up
Taught by
Dave Gray