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
I had similar problems using Jest (along with additional errors regarding Jest encountering an unexpected token etc). 🤔
I assume this is happening because Jest can't see any links inside our components/pages (because they're now being handled by next-view-transitions rather than next/link) therefore, I was able to fix this by mocking the rendering of those links instead....
This allows the link to be rendered (in the eyes of Jest) with both ...rest and children ensuring anything else associated with your links is not lost in the process.
Happy to hear alternative methods if someone suggests something more elegant, thanks! 🙂
I setup Vitest on my project, but I'm with this error.
Can someone help me?
The text was updated successfully, but these errors were encountered: