- Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
- Opcional: Si usamos Fetch API en el proyecto:
| set number | |
| set mouse=a | |
| syntax enable | |
| set showcmd | |
| set encoding=utf-8 | |
| set showmatch | |
| set relativenumber | |
| # Dentro de begin y end van a estar los plugins | |
| call plug#begin('~/.vim/plugged') |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "type": "session", | |
| "template": "➜ ", | |
| "style": "plain", |
| # Prompt | |
| Import-Module posh-git | |
| # Load prompt config | |
| function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName } | |
| $PROMPT_CONFIG = Join-Path (Get-ScriptDirectory) 'leninner.omp.json' | |
| oh-my-posh --init --shell pwsh --config $PROMPT_CONFIG | Invoke-Expression | |
| # Icons | |
| Import-Module -Name Terminal-Icons |
| {"version":1,"resource":"file:///d%3A/Dev/React/TypeScript/alameda-ecommerce/src/components/Header/styles.ts","entries":[{"id":"Tbp7.ts","timestamp":1651334760351},{"id":"qMDn.ts","timestamp":1651334819752},{"id":"AjvN.ts","timestamp":1651334852558},{"id":"TihA.ts","timestamp":1652230261654}]} |
| function reverseString(s) { | |
| try { | |
| console.log(s.split("").reverse().join("")); | |
| } catch(error) { | |
| console.log(error.message); | |
| console.log(s); | |
| } | |
| } |
| // proxies es6 | |
| var empleado = { | |
| nombre: '', | |
| apellido: '', | |
| password: '32ioi4o24' | |
| }; | |
| // empleado.nombre = 'alejandro'; |