You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I'm writing a jest test for a component that has the TooltipProvider as a dependency and I've googled and chat gpt'd my way around so many different configurations to try and resolve this error
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Support for the experimental syntax 'jsx' isn't currently enabled (8:5):
6 |
7 | return (
> 8 | <Tooltip.Provider
I've tried stubbing the radix/tooltip package with module name mapper, I've tried babel plugins, babel presets, transformignore patterns. I feel like I'm running out of possible solutions here, has anyone run into this issue and resolved it?
The text was updated successfully, but these errors were encountered:
Question
Hi guys, I'm writing a jest test for a component that has the TooltipProvider as a dependency and I've googled and chat gpt'd my way around so many different configurations to try and resolve this error
Jest encountered an unexpected token
Support for the experimental syntax 'jsx' isn't currently enabled (8:5):
I've tried stubbing the radix/tooltip package with module name mapper, I've tried babel plugins, babel presets, transformignore patterns. I feel like I'm running out of possible solutions here, has anyone run into this issue and resolved it?
The text was updated successfully, but these errors were encountered: