slow-yellowS
Refine3y ago
4 replies
slow-yellow

Not able to translate text while writing tests

Hi,
I am using vitest for writing tests for my refine app. I am not able to translate text using i18nextProvider in tests. The snapshots generating after tests have the non translated text.
In the tests, I am encapsulating my component with <I18nextProvider>. Still it is unable to translate the text in tests. Sample code:
<I18nextProvider i18n={i18n}>
         <HomePage />
    </I18nextProvider>
Was this page helpful?