Skip to content

Instantly share code, notes, and snippets.

View felipejoq's full-sized avatar
👋
Hello!

Felipe felipejoq

👋
Hello!
View GitHub Profile
@felipejoq
felipejoq / templateSlice.js
Created November 30, 2023 20:01 — forked from Klerith/templateSlice.js
Cascaron para crear Redux Slices rápidamente
import { createSlice } from '@reduxjs/toolkit';
export const templateSlice = createSlice({
name: 'name',
initialState: {
counter: 10
},
reducers: {
increment: (state, /* action */ ) => {
//! https://react-redux.js.org/tutorials/quick-start
@felipejoq
felipejoq / vite-testing-config.md
Last active November 28, 2023 19:37 — 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: