Skip to content

Instantly share code, notes, and snippets.

View 23DeeMoon's full-sized avatar

Enrique Sandez 23DeeMoon

  • RSTSystems
  • México
View GitHub Profile
@23DeeMoon
23DeeMoon / vite-testing-config.md
Created November 30, 2022 03:46 — 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: