Truthness / Verdadero
Clase 9 de 25 • Curso de JavaScript Testing con Jest 2019
Contenido del curso
Configuración
Matchers
Testing Asynchronous Code
Snapshot Testing
Implementando Jest en diferentes Frameworks
Resumen
En esta clase, Probaremos funciones que nos retornan Boolean, Undefined o Null.
Crearemos un nuevo archivo, donde crearemos las funciones que nos retornaran estos valores.
Métodos de Jest usados en esta clase:
- .toBeNull()
- .toBeTruthy()
- .toBeFalsy()
- .toBeUndefined()
- .not.toBeTruthy()