Skip to content

Instantly share code, notes, and snippets.

View ValLR's full-sized avatar
馃悎鈥嶁瑳

Valentina L贸pez ValLR

馃悎鈥嶁瑳
  • Chile
View GitHub Profile
@ValLR
ValLR / vite-testing-config.md
Created September 29, 2023 00:32 — 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:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto: