SolidJSS
SolidJSโ€ข3y agoโ€ข
3 replies
Nyantastic

Testing SolidStart routes with Vitest

Hello!
I'm using SolidStart and Vitest to test the components. But I didn't manage to find a way to test the route files (such as the index.tsx in my route folders, or the dynamic ones [id].tsx for example).
I'm putting my test files.test.tsx next to the tested files, and the route ones kinda broke my app's routes. Do I necessarily have to move them somewhere else?
And then, any idea on how I should render and test my routes? Does anyone has an example of good practices to test a SolidStart route?

Thanks a lot for your help, I'm apologize if the questions are a bit stupid.
I wish you a nice day!
Was this page helpful?