This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.wordWrap": "off", | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, | |
"workbench.iconTheme": "material-icon-theme", | |
"files.autoSave": "onFocusChange", | |
"editor.formatOnSave": true, | |
"[javascriptreact]": { | |
"editor.defaultFormatter": "dbaeumer.vscode-eslint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
``` | |
2. Opcional: Si usamos Fetch API en el proyecto: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 kyu kata answer to 'Friend or Foe? | |
function friend(friends){ | |
return friends.filter(singleFriend=>singleFriend.length===4); | |
} |