react-redux-starter-kit
react-redux-starter-kit copied to clipboard
[Question] Testing routes
I've seen the way routes are tested and I find it useful. Testing if the route is created correctly, and that the component renders correctly.
But I'm wondering how I could test a specific case.
I would like to test the route output given a specific path. For example that when I go to "/randomRoute" I get a 404 as I should. I think it would be a very useful test. Not sure what to test though, I guess I have to test the react-router itself and not the route?
Thank you