Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

39

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Testing For Errors & Global Mocks

Next we are going to be testing some more real world applications. We will be working on some code from the React for Everyone series using the MovieDB API. We will be using Global Mocks on our code so we can test for errors allowing you to test your own React projects with confidence.

Downloads

Become a pro to download code and videos

Comments

User avatar

Scott

almost 2 years ago

If you are getting errors about React Router, we fix those in the next video. The solution is to use a to wrap your components in the test.

User avatar

Jörg

over 2 years ago

Solution for you having the same problem, Wrap your Link into a BrowserRouter. That worked for me (-:

User avatar

Jörg

over 2 years ago [edited]

Hej

I did exactly the same as you, but my error message says

" Invariant failed: You should not use Link outside a Router"

Want to join the conversation?

Become a Pro member today!