Open CarlosEspinosa88 opened 1 year ago
How can I test useRef hook? Checkout this link ===> https://stackoverflow.com/questions/59066194/how-to-test-useref-with-jest-and-react-testing-library
Other example ===> jest.spyOn https://codesandbox.io/s/how-to-test-useref-with-testing-libraryreact-tf8kq?file=/src/__tests__/MeasureMe.test.js:400-420
jest.spyOn
How can I test useRef hook? Checkout this link ===> https://stackoverflow.com/questions/59066194/how-to-test-useref-with-jest-and-react-testing-library
Other example ===>
jest.spyOn
https://codesandbox.io/s/how-to-test-useref-with-testing-libraryreact-tf8kq?file=/src/__tests__/MeasureMe.test.js:400-420