- 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:
| version: '3.8' | |
| services: | |
| mongo-db: | |
| image: mongo:6.0.6 | |
| restart: always | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER} | |
| MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS} | |
| volumes: |
| /* /index.html 200 |
| //probar una de las 2 | |
| { | |
| "rewrites": [{ "source": "/(.*)", "destination": "/index.html" } ] | |
| } |