- 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:
| <?php | |
| $currentlang = get_bloginfo('language'); | |
| if($currentlang=="en-GB"): | |
| ?> | |
| <?php elseif($currentlang=="pl-PL"): ?> | |
| <?php endif; ?> |