if the component uses i18n, then an error occurs during testing:
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
10 |
11 | export function Test(props: Props) {
> 12 | const { t } = useTranslation();
| ^
13 | return <Div>{t('translations.someThing')}</Div>;
14 | }
if the component uses i18n, then an error occurs during testing:
in the documentation i18n this is solved by mock (https://react.i18next.com/misc/testing).
My suggestion, add this solution to the component generation