Skip to content

Instantly share code, notes, and snippets.

View cristianps1988's full-sized avatar
💡
Learning

Cristian Peña cristianps1988

💡
Learning
View GitHub Profile
@Klerith
Klerith / pasos-node-ts-jest.md
Created August 19, 2023 18:35
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
@Klerith
Klerith / pasos-node-typescript.md
Last active May 23, 2024 02:15
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@codigoconjuan
codigoconjuan / app.js
Created October 6, 2022 22:32
Validar email
const regex = /^\w+([.-_+]?\w+)*@\w+([.-]?\w+)*(\.\w{2,10})+$/