Uploaded August 2023 | Updated November 2026, 3 hours ago
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
In this Introduction to Jest testing, you will learn how to write JavaScript Unit Tests and why you should write them. Jest is a popular testing framework that helps you verify your code works like you think it should.
π Support me on Patreon β patreon.com/davegray
β Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β discord.gg/neKghyefqh
β Buy Me A Coffee β buymeacoffee.com/davegray
π Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
π Source Code: github.com/gitdagray/jest-intro
πΊ "Testing Your Code" playlist: youtube.com/playlist?list=PL0Zuz27SZ-6NTWVG8eM7Dt43vvzulnIbK
Introduction to Jest Testing | JavaScript Unit Tests
(00:00) Intro
(00:10) Welcome
(00:32) Lesson Goal
(00:51) Why Write Tests?
(01:24) Quick Note
(01:42) Install Node for npm
(02:04) Checking your Node install
(02:39) A Simple Function
(03:15) Install Jest
(04:24) Your First Unit Test
(05:42) How to Run Tests
(06:41) What is a Unit Test?
(07:14) Testing a 2nd Function
(12:07) Testing a 3rd Function
(16:09) Drilling Down to a Single Responsibility
(22:25) Generating a Coverage Report
(24:40) Wrap up
π Tutorial References:
π Jest Official Website: jestjs.io
π Node.js & NPM: nodejs.org
Was this tutorial about writing JavaScript Unit Testing with Jest helpful? If so, please share. Let me know your thoughts in the comments.
#jest #testing #javascript
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
In this Introduction to Jest testing, you will learn how to write JavaScript Unit Tests and why you should write them. Jest is a popular testing framework that helps you verify your code works like you think it should.
π Support me on Patreon β patreon.com/davegray
β Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β discord.gg/neKghyefqh
β Buy Me A Coffee β buymeacoffee.com/davegray
π Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
π Source Code: github.com/gitdagray/jest-intro
πΊ "Testing Your Code" playlist: youtube.com/playlist?list=PL0Zuz27SZ-6NTWVG8eM7Dt43vvzulnIbK
Introduction to Jest Testing | JavaScript Unit Tests
(00:00) Intro
(00:10) Welcome
(00:32) Lesson Goal
(00:51) Why Write Tests?
(01:24) Quick Note
(01:42) Install Node for npm
(02:04) Checking your Node install
(02:39) A Simple Function
(03:15) Install Jest
(04:24) Your First Unit Test
(05:42) How to Run Tests
(06:41) What is a Unit Test?
(07:14) Testing a 2nd Function
(12:07) Testing a 3rd Function
(16:09) Drilling Down to a Single Responsibility
(22:25) Generating a Coverage Report
(24:40) Wrap up
π Tutorial References:
π Jest Official Website: jestjs.io
π Node.js & NPM: nodejs.org
Was this tutorial about writing JavaScript Unit Testing with Jest helpful? If so, please share. Let me know your thoughts in the comments.
#jest #testing #javascript









