Alex Lohr
Alex Lohr
You can wrap useLocation in catchError in order to make the component work outside of the router. I'm sorry, but I cannot possibly support multiple versions of solid-router.
This is a module loading issue (we had a lot of those already). Maybe try making the router an external import.
vitest internally uses vite to transform the files loaded. However, it has multiple mechanisms to load files - via node modules resolution or its internal resolver. Whenever file transformation fails...
It cannot be fixed in testing-library, but I am preparing a fix in vite-plugin-solid.
I can influence the testing config from the vite-plugin-solid, but not from @solidjs/testing-library.