Skip to content

Instantly share code, notes, and snippets.

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

Jonathan Mart铆nez Jommartinez

馃彔
Working from home
View GitHub Profile
@Jommartinez
Jommartinez / vite-testing-config.md
Created June 12, 2024 10:18 — 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:
const papa = require("papaparse");
const request = require("request");
const fs = require('fs')
const importCSV = () =>
new Promise(resolve => {
const parseStream = papa.parse(papa.NODE_STREAM_INPUT, {
download: true,
header: true,