T
TanStack8mo ago
wise-white

How to use Tanstack Router with Playwright Component Testing

Im trying to migrate a project to Tanstack Router and can't figure out how to use it in playwright component tests. Has anyone successfully done this before?
4 Replies
optimistic-gold
optimistic-gold8mo ago
what exactly do you want to test? how does router come into play here?
wise-white
wise-whiteOP8mo ago
I have a component that uses Route.useSearch This project was previously on react-router where I could easily mount the route component in the test.
wise-white
wise-whiteOP8mo ago
That didn't seem to work for me. I'll see if I can get a minimal example in GitHub this weekend

Did you find this page helpful?