code: function propagateToGlobal(window) {
              for (let key in window) {
                  if (!window.hasOwnProperty(key)) continue
                  if (key in global) continue
  
                  global[key] = window[key]
              }
              global.Node = window.Node;
              global.Comment = window.Comment;
          }
docs: from mocha-jsdom https://github.com/rstacruz/mocha-jsdom/blob/master/index.js#L80