Recursos Adicionales
Documentación Oficial
Testing Fundamentals
-
Testing Library - Official Docs - La guía definitiva para testing de interfaces de usuario. Incluye React, Vue, Angular y más.
- Queries - Cómo buscar elementos en el DOM
- User Interactions - Simular acciones de usuario
- Async Utilities - waitFor, findBy, etc.
-
Jest Documentation - Framework de testing que usamos
- Expect API - Todas las assertions disponibles
- Mock Functions - Cómo mockear dependencias
- Asynchronous Testing - Testing de código async
Backend Testing
-
Supertest - GitHub - Testing de APIs HTTP
- Simple y potente para testear Express/Node.js
- Ejemplos de uso con diferentes frameworks
-
Mock Service Worker - Interceptor de requests HTTP
- Getting Started - Setup inicial
- Request Handlers - Definir mocks
- Browser Integration - Usar en development
React Testing
-
React Testing Library - Testing específico de React
- Example - Ejemplos prácticos
- Cheatsheet - Referencia rápida
-
React Hooks Testing Library - Testing de custom hooks
- renderHook API - Documentación completa
- Examples - Casos de uso comunes
Artículos Recomendados
- Common mistakes with React Testing Library - Kent C. Dodds
- Integration vs Unit Testing - Kent C. Dodds
- Testing Implementation Details - Kent C. Dodds
Herramientas
- Nock - HTTP mocking alternativo
- Jest Extended - Matchers adicionales
- Faker.js - Generar datos fake
Próxima Sesión
Sesión 3: Testing E2E con Cypress
- Introducción a E2E testing
- Setup de Cypress
- Primeros tests E2E
- Best practices