Khaitan

Introduction to Jest Testing | JavaScript Unit Tests

Learn how to use Jest to test your JavaScript code. Learn how to write JavaScript Unit Tests and why you should write them. Jest is a popular testing framework that is easy to learn and use.

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.

(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

🔗 Source Code: https://github.com/gitdagray/jest-intro

📚 Tutorial References:
🔗 Jest Official Website: https://jestjs.io/ 
🔗 Node.js & NPM: https://nodejs.org 

#jest #testing #javascript

How to Get Started with Jest Testing
1.35 GEEK