TypeError: usePopoverContext is not a function or its return value is not iterable #1773
Unanswered
phunguyen-mck
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm currently using React version "18.1.0" and "@headlessui/react": "^1.6.4". Currently I'm having the issue while running unit test (using jest) for every components which using Popover component.
TypeError: usePopoverContext is not a function or its return value is not iterable.
Any ideas how I can mock this context?. Appreciate your help
Beta Was this translation helpful? Give feedback.
All reactions