An example of testing a Tanstack Router React app using react-testing-library under Vite
We needed debug why Tanstack router was not rendering pages correctly in our kotlin/js react application's mocha testing environment.
This project is our working control example.
See react-testing-tanstackrouter-mocha for the same example under Mocha.
Use npm run test to run the tests with Tanstack Router with correct Tanstack Router behavior.