Skip to content

Instantly share code, notes, and snippets.

View Alirio-Mieres's full-sized avatar
🏠
Working from home

Alirio Mieres Alirio-Mieres

🏠
Working from home
View GitHub Profile
@Alirio-Mieres
Alirio-Mieres / vite-testing-config.md
Last active December 16, 2023 01:49 — 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 Windows

En proyectos de React + Vite

  1. Instalaciones:
npm i --save-dev jest babel-jest @babel/preset-env @babel/preset-react
npm i --save-dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@Alirio-Mieres
Alirio-Mieres / templateSlice.js
Created December 19, 2023 17:25 — 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