Skip to content

Instantly share code, notes, and snippets.

View cquesadad's full-sized avatar
👨‍💻
Boosting

Carlos Quesada cquesadad

👨‍💻
Boosting
View GitHub Profile
@beovulf
beovulf / if_else_lang.php
Created December 1, 2016 08:19
If else language wordpress (polylang)
<?php
$currentlang = get_bloginfo('language');
if($currentlang=="en-GB"):
?>
<?php elseif($currentlang=="pl-PL"): ?>
<?php endif; ?>
@Klerith
Klerith / vite-testing-config.md
Last active July 29, 2024 06:40
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: