Skip to content

Instantly share code, notes, and snippets.

View MarcAnt's full-sized avatar
馃彔
Working from home

Marcos MarcAnt

馃彔
Working from home
View GitHub Profile
@MarcAnt
MarcAnt / vite-testing-config.md
Created August 31, 2022 05:34 — 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:

Using JSDOC-Based TypeScript

Get Started

Choose your editor

  • WebStorm, Rider
    • Partial support, not enough intelli hints
    • Toggle on TypeScript language service
  • VSCode