-
Hey everyone I've encountered a problem while testing the component that uses useFloating hook I've made a simple reproduction in my repo: https://github.com/R-Oscar/floating-ui-jest-test
I also did this in my test case: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
JSDOM can't render elements to measure in its virtual env, so measured sizes are always Therefore you can't assert the sizes or location of the elements inside such an env - this requires Playwright or similar e2e tests. |
Beta Was this translation helpful? Give feedback.
JSDOM can't render elements to measure in its virtual env, so measured sizes are always
0
.Therefore you can't assert the sizes or location of the elements inside such an env - this requires Playwright or similar e2e tests.