I am trying to do unit tests with Jest and React Testing Library on a component that uses “PrismicLink” and “PrismicNextImage” but when I render my component with my mock data I get the following error
Hello @fdgbatarse, we don't have guides that use Jest for testing. Can you tell me how this error is connected to Prismic? I'm not able to spot a warning related to the Prismic kit.
Thanks
Thanks for your quick response, I think it's related to "prismicLink" and "PrismicNextImage" because when I remove those components, the test don't fail and I am only rendering the component in the test for the moment.
If there is no documentation with Jest and React Testing Library, do you recommend another way to make unit test with prismic?