Skip to content

Instantly share code, notes, and snippets.

View aljorgevi's full-sized avatar

Jorge Mena aljorgevi

View GitHub Profile
import requests
import json
import csv
from io import StringIO
def read_csv(file_path):
with open(file_path, mode='r', encoding='utf-8') as file:
csv_reader = csv.reader(file)
csv_data = list(csv_reader)
return csv_data
@aljorgevi
aljorgevi / jest-set-up.md
Last active June 18, 2022 12:13
Vite + Jest + React Testing Library

Jest + React Testing Library

React + Vite

  1. Instalaciones:
npm install -D jest babel-jest @babel/preset-env @babel/preset-react 
npm install -D @testing-library/react @types/jest jest-environment-jsdom
  1. if Fetch API: