Skip to content

Instantly share code, notes, and snippets.

View Kreator-97's full-sized avatar
馃彔
Working from home

Donato Monz贸n Kreator-97

馃彔
Working from home
View GitHub Profile
@Kreator-97
Kreator-97 / pasos-node-ts-jest.md
Created October 11, 2024 23:25 — forked from Klerith/pasos-node-ts-jest.md
Note + TypeScript + Jest = Testing

Pasos para configurar Jest con TypeScript, en Node

Documentaci贸n oficial sobre Jest

  1. Instalaciones de desarrollo (super test es 煤til para probar Express)
npm install -D jest @types/jest ts-jest supertest
@Kreator-97
Kreator-97 / vite-testing-config.md
Last active November 25, 2022 00:26 — 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:
@Kreator-97
Kreator-97 / recomendada.Dockerfile
Created September 12, 2022 22:23 — forked from Klerith/recomendada.Dockerfile
NextJS - Dockerfile - Configuraci贸n simple y recomendada
# Fuente: https://github.com/vercel/next.js/blob/canary/examples/with-docker/README.md
# Install dependencies only when needed
FROM node:16-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile