Closed Eugeniocalabresi closed 8 months ago
Are you maybe using npm instead of pnpm? The latter might be a workaround for that issue until my PR for vite-plugin-solid is integrated.
That being said, the issue is not in our testing-library, but in the aforementioned plugin.
I am currently using yarn@4.1.0. Are you aware of any problems or incompatibilities with this package manager as well?
I only tested npm and pnpm. I'll try to test yarn too soon, but I expect it to have similar issues than npm.
Yarn seems to have had the same issues. Update your vite-plugin-solid, this should resolve the issue.
Great! thanks for your help.
Issue with router rendering in @solidjs/testing-library
I'm encountering an issue with @solidjs/route rendering when using
@solidjs/testing-library
to test myAppRouter
component.Package versions
Code
My
AppRouter
component is as follows:My
NotAuthRoute
component is as follows:And my test is as follows:
Error
When I run my test, I receive the following error: