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
[x ] I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Links can be used in tests that are run with Jest.
Current Behavior
at throwIfNoRouter (node_modules/next/dist/lib/router/index.js:107:11)
at Object.SingletonRouter.(anonymous function) [as prefetch] (node_modules/next/dist/lib/router/index.js:69:5)
at Link.prefetch (node_modules/next/dist/lib/link.js:143:24)
at Link.componentDidMount (node_modules/next/dist/lib/link.js:148:12)
at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:8770:24)
at commitAllLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:9946:9)
Steps to Reproduce (for bugs)
"next": "^5.0.1-canary.15",
Create a component with a render method like that returns: (partial):
Expected Behavior
Links can be used in tests that are run with Jest.
Current Behavior
Steps to Reproduce (for bugs)
"next": "^5.0.1-canary.15",
Create a component with a render method like that returns: (partial):
3.
jest -t Index
Context
I'm trying to write a Jest test for a page that has a
next/link
on it.Your Environment
The text was updated successfully, but these errors were encountered: