Should I use createRoutesStub when using React Router as a library? #12576
-
Hello there, I'm trying to update React Router to v7 and I've noticed that the only doc page regarding testing is in the "Framework" section. It suggests to use As of now, I was using that little abstraction to test such components:
I plan to use React Router v7 as a library for now, does that mean there is no need to update my tests with Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, the helper will helps you test components using hooks and components from RR without mocking them as they depend on RR context. |
Beta Was this translation helpful? Give feedback.
Yes, the helper will helps you test components using hooks and components from RR without mocking them as they depend on RR context.