MENU

Fun & Interesting

JavaScript Testing with Jest – Crash Course

freeCodeCamp.org 116,457 1 year ago
Video Not Working? Fix It Now

Learn how to test JavaScript code using the Jest testing framework. Jest is a JavaScript testing framework designed to ensure correctness of any JavaScript codebase. It allows you to write tests with an approachable, familiar and feature-rich API that gives you results quickly. ✏️ Course developed by @Code With Tomi ❤️ Try interactive JavaScript courses we love, right in your browser: https://scrimba.com/freeCodeCamp-JavaScript (Made possible by a grant from our friends at Scrimba) ⭐️ Contents ⭐️ 00:00 Intro 00:45 Setting Up Jest 06:22 Basic Concepts In Jest 15:31 Matchers 33:21 Testing Asynchronous Code 49:48 Mock Functions and Spies 1:00:20 Outro 🎉 Thanks to our Champion and Sponsor supporters: 👾 davthecoder 👾 jedi-or-sith 👾 南宮千影 👾 Agustín Kussrow 👾 Nattira Maneerat 👾 Heather Wcislo 👾 Serhiy Kalinets 👾 Justin Hual 👾 Otis Morgan 👾 Oscar Rahnama -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news

Comment