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

Please include DOMParser in the key list: https://developer.mozilla.org/en-US/docs/Web/API/DOMParser

Hi there, In [our unit tests](https://github.com/almende/vis/blob/develop/test/Network.test.js#L183) we use the following construct to initialize `jsdom-global`: ```js before(function() { this.jsdom_global = jsdom_global( "", { skipWindowCheck: true} ); this.container = document.getElementById('mynetwork'); }); after(function()...

The JSDom documentation advises against making `window` and `document` , etc. part of the global namespace in Node.js. Should I therefore avoid using this package, or do you have a...

https://github.com/tmpvar/jsdom/blob/master/Changelog.md

fileReader = new FileReader() doesn't appear to be working, although new File() works, is this intended? It appears to be implemented in jsdom according to the version 7 changelog.

This code seems to be working: ``` js var jsdom = require('jsdom'); this.jsdom = require('jsdom-global')( htmlContent ); // The second jsdom instance is used jsdom.jQueryify(window, "http://code.jquery.com/jquery.js", function () { done()...

After upgrading to the new version of jsdom and jsdom-global I am getting this issue. Code that I am testing has this line inside of it window.alert('Please try again'). It...

First of all, thanks for the interesting and useful solution, which `jsdom-global` definitely is. Though let me notice there is still a difference between the real browsers behavior and the...

Can we some how expose `chrome` variable? We are going to test `chrome extension`.

This is used by jsdom and was missing here https://github.com/tmpvar/jsdom/blob/master/lib/jsdom/living/index.js#L70. Without this change you can't use fetch in your tests.