PointerEvent constructor not available in window
See original GitHub issueBasic info:
- Node.js version: 10.15.2
- jsdom version: 13.2.0
Minimal reproduction case
const {JSDOM} = require('jsdom');
const dom = new JSDOM();
new dom.window.PointerEvent('pointerup', {button: 0});
This throws TypeError: dom.window.PointerEvent is not a constructor
How does similar code behave in browsers?
Standard: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events
Issue Analytics
- State:
- Created 5 years ago
- Reactions:36
- Comments:6 (2 by maintainers)
Top Results From Across the Web
PointerEvent() - Web APIs - MDN Web Docs
The PointerEvent() constructor creates a new synthetic and untrusted PointerEvent object instance.
Read more >javascript - How to substitute the PointerEvent in Jest ...
In my react app I test for different event constructors in a switch case statement. Something like that: switch (event.constructor) { case ...
Read more >Pointer Events - W3C
Abstract. The features in this specification extend or modify those found in Pointer Events, a W3C Recommendation that describes events and ...
Read more >PointerEvent | typescript - v3.7.7
Returns the type of event, e.g. "click", "hashchange", or "submit". view. view: Window | null. Inherited from UIEvent.view.
Read more >Maps JavaScript API | Google Developers
If a FeatureLayer of the specified FeatureType does not exist on this map, ... The click event is not fired if a marker...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same with
BeforeUnloadEvent
https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEventIs this still being worked on?