Hey, I had the exact same issue with Headless UI jsdom. What worked for me was using `@testing-library/react` and `@testing-library/jest-dom` together.
Also, make sure you’re not over-mocking the DOM. Sometimes, keeping it simple is better. I found that mocking too much can break the interactions.
If you’re still stuck, check out the Headless UI GitHub issues page. There’s a ton of helpful threads there.
Also, make sure you’re not over-mocking the DOM. Sometimes, keeping it simple is better. I found that mocking too much can break the interactions.
If you’re still stuck, check out the Headless UI GitHub issues page. There’s a ton of helpful threads there.
