React Testing Library Cheat Sheet
✦ Ruta Oficial AppCloud👥 125.000 desarrolladores

React Testing Library Cheat Sheet

When it comes to testing React apps manually, we can either choose to render individual component trees in a simplified test environment or run the complete app...

🔍
Mostrando 14 tarjetas de referencia

Basic level

5 ejemplos

#1. Purpose & Solution

#2. A basic component render test

#3. Why use RTL vs Enzyme?

#4. Queries in RTL

#5. Component tree testing level

Intermediate level

4 ejemplos

#1. Jest vs RTL

#2. Mocking with MSW

#3. `render` options

#4. `renderHook` usage

Advanced Level

5 ejemplos

#1. Adding custom queries

#2. Skipping auto cleanup

#3. Migrating from Enzyme

#4. Querying within elements

#5. Integration testing

¿Listo para practicar con ?

Aplica esta sintaxis resolviendo desafíos interactivos con consola en vivo en nuestros 6 módulos de aprendizaje.

Ir al Desafío del Módulo 01 🚀Ver Plan de Estudio Completo