Skip to content

Instantly share code, notes, and snippets.

View m01x's full-sized avatar
⚙️
Learning something new!

m01x m01x

⚙️
Learning something new!
View GitHub Profile
@m01x
m01x / vite-testing-config.md
Created September 12, 2024 20:06 — 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: