- 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:
| import { useState } from "react" | |
| /* | |
| This are variable importations | |
| It can be generalizable | |
| import homeophatyAPI from "../api/homeophatyAPI" | |
| import { getUncertainAxiosErrorMessage } from "../helpers/getUncertainErrorMessage" | |
| import { ResultSearchAllowedTypes, SearchResponse } from "../interfaces/common"; | |
| */ |