From a105dc6db8c4d03960f92d8eb8990360fb1a9dbb Mon Sep 17 00:00:00 2001 From: Alexey Shpakov Date: Mon, 17 Jul 2017 22:54:12 +1000 Subject: [PATCH] Add jsdom instance reference to global Will allow to access jsdom API (#26). --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 7827bd5..09d57f0 100644 --- a/index.js +++ b/index.js @@ -33,6 +33,7 @@ module.exports = function globalJsdom (html, options) { global[key] = window[key] }) + global.jsdom = document global.document = window.document global.window = window window.console = global.console