Learn Backend Development Part-Time, Online
Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This introductory course teaches how to write and run JavaScript unit tests with Jest. Learners test several small functions and generate a code coverage report.
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