react-redux-starter-kit icon indicating copy to clipboard operation
react-redux-starter-kit copied to clipboard

[Question] Testing routes

Open vilvadot opened this issue 8 years ago • 0 comments

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

vilvadot avatar Jan 23 '17 11:01 vilvadot