win.PointerEvent is not a constructor #1560
christianhegedues
started this conversation in
General
Replies: 1 comment 1 reply
-
This is a pending bug from jsdom, see the issue Would recommend trying happy-dom instead, see if it works better. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🐛 Bug report
Currently running tests that includes a Zagjs components throw the following error:
TypeError: win.PointerEvent is not a constructor
. The error comes from the filetrack-press.ts
of the @zag-js/dom-events and only occurs if you execute an event on another element, for exampledocument.body
.💥 Steps to reproduce
document.body
💻 Link to reproduction
CodeSandbox reproduction: https://codesandbox.io/p/devbox/fervent-cdn-wg2lvd
🧐 Expected behavior
Tests should not throw an error when an event is executed on an element
🧭 Possible Solution
🌍 System information
Beta Was this translation helpful? Give feedback.
All reactions