Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera Project Network

Introduction to Unit Testing in Jest - The Fundamentals

Coursera Project Network via Coursera

Overview

In this 1-hour long project-based course on Introduction to Unit testing In Jest, we will get to explore the anatomy of a Jest unit test, and begin writing code and subsequently, the tests for that code using the Jest framework. By following this course, we will demystify unit tests and understand how we can use them to write better code. we will get practise across the general landscape of the Jest framework to and see how we can use the cool tools provided to us by the awesome Jest developers We will learn all about the syntax of a test, general rules, common matchers, and then start working with testing in asynchronous code and API fetching and then move on to mocking. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Syllabus

  • Project Overview
    • Hello and welcome to the course! In this course you will get hands-on practise of setting up code and writing tests for that code in Jest. During this course you will get experience working across the whole of the Jest framework, from understanding the anatomy of a test, working with various matchers, data-types, to learning how to handle testing in asynchronous code, using mocks and writing setup and teardown code for repetitive actions. By the end of this course you will be ready to begin writing your own tests on your own personal projects or to contribute to work projects.

Taught by

Rudi Hinds

Reviews

4.5 rating at Coursera based on 58 ratings

Start your review of Introduction to Unit Testing in Jest - The Fundamentals

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.