Closed allestaire closed 1 year ago
Uh oh! @allestaire, the image you shared is missing helpful alt text. Check your issue body.
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.
Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
Uh oh! @allestaire, the image you shared is missing helpful alt text. Check your issue body.
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.
Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
Out of all the examples, useRef is not included, tsk tsk Testing Library
Why it is working on this example but not on my local machine https://codesandbox.io/p/sandbox/how-to-test-useref-with-testing-libraryreact-tf8kq?file=%2Fsrc%2F__tests__%2FMeasureMe.test.js%3A7%2C33-7%2C48
Sorry for the rant, The issue is, there are 2 react installed whic is from source and test forlder, in order to solve the issue I must use the source react instead of from test react
One way to solve is:
npm link ../src/node_modules/react
This test wont work when a component having useRef or any hooks