- 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:
| Act as an expert Prompt Engineer. Your primary reference for this task is the provided book: 'Prompt Engineering' by Lee Boonstra. | |
| When I give you a prompt that I want to improve, which we'll call聽[User_Prompt_To_Improve], your objective is to analyze it and then transform it into an optimized version. This optimized version should be designed to take the biggest advantage of Gemini, based聽strictly聽on the principles, techniques, and best practices detailed in this book. | |
| Your response should provide two key components: | |
| The Optimized Prompt:聽Present the rewritten, improved version of聽[User_Prompt_To_Improve]. |
Documentaci贸n oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
git config --global alias.s "status --short"
git config --global alias.s "status -sb"
| export const timeSince = ( date: string ) => { | |
| const baseDate = new Date(date) | |
| const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000); | |
| let interval = seconds / 31536000; |