Skip to content

Instantly share code, notes, and snippets.

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

German Tellez Vanegas getellez

馃彔
Working from home
View GitHub Profile
@Klerith
Klerith / vite-testing-config.md
Last active November 28, 2025 13:56
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:
@ali-kamalizade
ali-kamalizade / healthcheck.js
Last active October 20, 2025 22:08
A sample implementation of a health check endpoint for Node.js using Express
// app.js: register the route. In our case, we don't want authorization for this route
app.use('/healthcheck', require('./routes/healthcheck.routes'));
// healthcheck.routes.js: return a 2xx response when your server is healthy, else send a 5xx response
import express from 'express';
const router = express.Router({});
router.get('/', async (_req, res, _next) => {
// optional: add further things to check (e.g. connecting to dababase)