Error thrown when using I18nProviderClient in a jest test
To Reproduce
Steps to reproduce the behavior:
Create client component that is wrapped in the I18nProviderClient
Create jest test for component and wrap component in I18nProviderClient within the test
See error TypeError: (0 , import_react.use) is not a function
Expected behavior
Test would pass
Screenshots
About (please complete the following information):
next-international version 1.2.3
Next.js version 14.0.4
React version 18
Additional context
I am trying to write a jest test for a component that leverages the I18nProviderClient but am seeing some errors. I imagine this is due to something I have configured incorrectly, however, due to no examples being provided for unit testing I am unsure how you would properly set this up. Has anyone else experienced this?
Describe the bug
Error thrown when using I18nProviderClient in a jest test
To Reproduce Steps to reproduce the behavior:
Expected behavior Test would pass
Screenshots
About (please complete the following information):
Additional context
I am trying to write a jest test for a component that leverages the I18nProviderClient but am seeing some errors. I imagine this is due to something I have configured incorrectly, however, due to no examples being provided for unit testing I am unsure how you would properly set this up. Has anyone else experienced this?