React Router is the kind of library that can cause people to "forget about" testing. Although the library itself is simple to use—it's just a collection of Router, Route, and Link components—testing can prove tricky once you get past the simple examples and into the real world.
When people hit difficulty in real-world scenarios, sometimes their response is to give up on the tests and perhaps come back to them later. Unfortunately, having holes in your test coverage can severely impact the confidence you have in your test suite, so it's important to resist that impulse to move on to the next thing.
With a little bit of perseverance and some critical thinking, testing React Router is quite feasible, as you're about to find out. In this section, I'll give you some general guidance, which you should...