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
React Router 4 relies on React context to work. You can no longer simply render Link components etc. For unit testing we now have to wrap things with a <MemoryRouter> or <StaticRouter> (see https://reacttraining.com/react-router/core/guides/testing)
As those docs suggest there is possibly another workaround for this my stubbing/mocking the context.
The text was updated successfully, but these errors were encountered:
React Router 4 relies on React context to work. You can no longer simply render Link components etc. For unit testing we now have to wrap things with a
<MemoryRouter>
or<StaticRouter>
(see https://reacttraining.com/react-router/core/guides/testing)As those docs suggest there is possibly another workaround for this my stubbing/mocking the context.
The text was updated successfully, but these errors were encountered: