Introduction to Unit Testing in Jest - The Fundamentals

4.9
estrellas
14 calificaciones
ofrecido por
Coursera Project Network
En este proyecto guiado, tú:

Learn the anatomy of a unit test in Jest

Write unit tests in Jest on real code

Clock2 hours
IntermediateIntermedio
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

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.

Habilidades que desarrollarás

Unit TestingJest

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  1. Task 1: Why do we write tests? Let’s write our first test to find out

  2. Task 2: Start using matchers in our tests to understand how a test works

  3. Task 3: Matchers deep dive #1

  4. Task 4: Matchers deep dive #2

  5. Task 5: Practice writing tests for asynchronous code and API calls

  6. Task 6: Using mocks in our tests

  7. Task 7: Using setup and teardown code in our tests

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.