S
SolidJS3mo 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.
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
solid-testing-library/src/tests/routes.tsx at main · solidjs/so...
Simple and complete Solid testing utilities that encourage good testing practices. - solidjs/solid-testing-library
0 Replies
No replies yetBe the first to reply to this messageJoin