I am using react-testing-library and jest. In componentdidupdate trying to get 'this.testRef.current.offsetHeight', getting offsetHeight as 0 even after content is loaded. I want DOM's exact offsetHeight because of having some conditions based on it.
Is there any possible solution to resolve in react-testing-library and jest.
I am using dangerouslySetInnerHTML to binding html content for testRef's element.