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•8mo ago
what exactly do you want to test? how does router come into play here?
wise-whiteOP•8mo 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.optimistic-gold•8mo ago
wise-whiteOP•8mo ago
That didn't seem to work for me. I'll see if I can get a minimal example in GitHub this weekend