jsdom = require('jsdom');
JSDOM = jsdom.JSDOM;
window = new JSDOM('<html></html>').window;
$ = require('jquery')(window);


// -----------------------------------
/**
 * 取出HTML
 */
get_outer_html = function (_ele) {
    var _container = $("<div></div>");
    
    if (_ele.length === 1 && typeof(_ele[0].html) !== "function") {
        _ele = _ele[0];
    }
    if (typeof(_ele.length) === "undefined") {
        _ele = [_ele];
    }
    
    //console.log(_ele.length);
    
    for (var _i = 0; _i < _ele.length; _i++) {
        var _e;
        if (typeof(_ele.eq) === "function") {
            _e = _ele.eq(_i);
        }
        else {
            _e = _ele[_i];
        }
        
        _container.append(_e);
    }
    
    var _output = _container.html();
    _output = _output.split("\n").join("");
    return _output;
};

@@ -1,13 +1,23 @@
-jsdom
+const %7B JSDOM %7D
  = requi
@@ -23,87 +23,78 @@
 ire(
+ 
 'jsdom'
+ 
 );%0D%0A
-JSDOM = jsdom.JSDOM;%0D%0Awindow = new JSDOM('%3Chtml%3E%3C/html%3E').window;%0D%0A$
+const jsdom = new JSDOM( testHTML );%0D%0A%0D%0A$ = global.jQuery
  = r
@@ -104,16 +104,17 @@
 ire(
+ 
 'jquery'
 )(wi
@@ -113,16 +113,9 @@
 ery'
-)(window
+ 
 );%0D%0A

Update jquery.js