Skip to content

Instantly share code, notes, and snippets.

View alex-carrera's full-sized avatar
馃榾

Alex Carrera alex-carrera

馃榾
  • Quito - Ecuador
View GitHub Profile
@alex-carrera
alex-carrera / vite-testing-config.md
Last active April 20, 2023 15:25 — forked from Klerith/vite-testing-config.md
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalaci贸n y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
npm add --dev jest babel-jest @babel/preset-env @babel/preset-react 
npm add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto: