jsdom-global icon indicating copy to clipboard operation
jsdom-global copied to clipboard

Enable DOM in Node.js

Results 32 jsdom-global issues
Sort by recently updated
recently updated
newest added

Hey, just had this weird behaviour with the following code: ```javascript const jsdomGlobal = require('global-jsdom'); console.log(URL, "Test 1"); const cleanup = jsdomGlobal(""); console.log(URL, "Test 2"); cleanup(); console.log(URL, "Test 3"); ```...

Using jsdom-global w/ some mocha tests and I've been polyfilling rAF up to this point. [jsdom 11 now ships with `requestAnimationFrame`, but it has to be enabled](https://github.com/tmpvar/jsdom/commit/8a6894c34f14b9131d0fe4acadb71dae4f49daca). Is this something...

The jsdom package appears to support SVGElement now. Can support for SVGElement be added to jsdom-global? Thanks!

`performance` on the window object isn't being exposed onto the `global` object. https://developer.mozilla.org/en-US/docs/Web/API/Performance

I hope I'm not missing something obvious but have spent quite a bit of time trying to solve this before creating an issue. I am using `mocha` as my test...

When the option `pretendToBeVisual` is set to true, this feature is needed

Sorry in advance for the random drive-by PR 😂 Since [#1030](https://github.com/jsdom/jsdom/issues/1030) has officially landed in JSDOM it can now be used to test standard web components This PR adds the...

## Summary This will properly mock these two objects for test environments relying on this library. Addresses #47

window.performance is defined while performance is not, causing reference errors in unit tests with [email protected]