Top "Jsdom" questions

Implementation of the WHATWG DOM and HTML Standards (among others) for node.

Setting up JSDOM with Mocha

I'm trying to use sinon's mock and spy for testing Redux components and async actions, but as soon as I …

javascript node.js redux mocha.js jsdom
Node.js jsdom error

I am trying to get jsdom to work :) Here's the code: var jsdom = require("jsdom"); var request = require("request"); var …

javascript node.js jsdom cloud9-ide contextify
Mocking document.createRange for jest

Jest, through JSDom I imagine, does not have document.createRange defined. How can I overwrite or provide this behavior? The …

javascript jestjs jsdom
Set window width in jsDom?

Should be a simple question. How do I set the width in a jsDom object? jsdom.env({ url:'http://testdatalocation', …

node.js jsdom
Installing NodeJS contextify package yields an error

I am 1 hour into NodeJS, so bear with me. One of the packages my project requires is JSDom. After prodding …

node.js npm jsdom node-gyp contextify
'globalThis' underfined for Jest test cases

I am using globalThis property specifically globalThis.scrollTo(0,0) in my React WebApp. I am using Jest for unit testing alongwith …

javascript reactjs jestjs enzyme jsdom