Skip to content

Instantly share code, notes, and snippets.

View chaicopadillag's full-sized avatar
Coding

G. Chaico P. chaicopadillag

Coding
View GitHub Profile
@chaicopadillag
chaicopadillag / vite-testing-config.md
Created July 15, 2022 20:56 — 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:
@chaicopadillag
chaicopadillag / git-comands.md
Created July 13, 2022 22:25
Comandos de Git

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email [email protected]
@chaicopadillag
chaicopadillag / CustomGoogleMapsPlaces.tsx
Created July 6, 2022 22:01
Custom Google Maps and Places with React and Tailwind CSS
import { FC, useCallback, useEffect, useRef, useState } from 'react';
import { Autocomplete, GoogleMap, Marker, useLoadScript } from '@react-google-maps/api';
import { GOOGLE_MAPS_API_KEY } from '../../utilities';
import { useGeoLocation } from '../../hooks';
import { notifyError } from './NotificationCustom';
type LatLngType = {
lat: number;
lng: number;
};