The best way to do this is to skip using jsdom.env() and just use jsdom.jsom() in combination with your own code that performs the request. You can then call jsdom.jsdom() many times using the same HTML.
--
You received this message because you are subscribed to the Google Groups "jsdom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jsdom+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[TypeError: Cannot read property '_location' of null]
/node_modules/jsdom/lib/jsdom/browser/Window.js:134
return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
TypeError: Cannot read property '_location' of null
at Window.location (/node_modules/jsdom/lib/jsdom/browser/Window.js:134:79)
at callback (/node_modules/jsdom/lib/jsdom/browser/Window.js:466:40)
at Timer.listOnTimeout (timers.js:92:15)
Can you produce a 10-20 line reproduction case, and post it to the issue tracker? I’ve heard similar issues but nobody has been able to post a small repro.