SolidJSS
SolidJS2y ago
Minoo

Example in solid-testing-library example not working

Hello, the can render a route with the id test in the solid-testing-library https://github.com/solidjs/solid-testing-library/blob/main/src/__tests__/routes.tsx does not work for me.

I get that:
 FAIL  src/test/pages/Drone-view.test.tsx > location option > can render a route with the id
TestingLibraryElementError: Unable to find an element with the text: Id: 1234. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.


I tried using this test because I have issues testing components used in routes and using the location param to navigate to a route while testing does not work at all
GitHub
Simple and complete Solid testing utilities that encourage good testing practices. - solidjs/solid-testing-library
solid-testing-library/src/__tests__/routes.tsx at main · solidjs/so...
Was this page helpful?