Hey! I’ve been using Headless UI jsdom for a while now, and yeah, it’s not perfect. One thing that helped me was switching to `happy-dom` for testing. It’s lighter and handles some of the quirks better than jsdom.
Also, make sure you’re not missing any polyfills. Jsdom doesn’t include everything by default, so you might need to add them manually.
For mocking, I’d recommend looking into `jest-mock`—it’s super flexible and works well with Headless UI.
Also, make sure you’re not missing any polyfills. Jsdom doesn’t include everything by default, so you might need to add them manually.
For mocking, I’d recommend looking into `jest-mock`—it’s super flexible and works well with Headless UI.
