Skip to content

Instantly share code, notes, and snippets.

View gerashdo's full-sized avatar
馃檭
Growing :)

Gerardo JA gerashdo

馃檭
Growing :)
View GitHub Profile
import { useState } from "react"
/*
This are variable importations
It can be generalizable
import homeophatyAPI from "../api/homeophatyAPI"
import { getUncertainAxiosErrorMessage } from "../helpers/getUncertainErrorMessage"
import { ResultSearchAllowedTypes, SearchResponse } from "../interfaces/common";
*/
@gerashdo
gerashdo / vite-testing-config.md
Created January 6, 2023 18:29 — forked from Klerith/vite-testing-config.md
Vite + Testing + Jest - Completo

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:
@gerashdo
gerashdo / vite-testing-config.md
Created December 16, 2022 02:50 — 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: