Skip to content

Instantly share code, notes, and snippets.

View JosePascualGomez's full-sized avatar

José Pascual Gomez Bl. JosePascualGomez

View GitHub Profile
@JosePascualGomez
JosePascualGomez / vite-testing-config.md
Last active November 13, 2022 01:28 — forked from Klerith/vite-testing-config.md
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion con npm 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: