tmpvar/jsdom — Issue #379: Load local copy of jquery?
Author: megablue
Created: 2011-12-24 13:37:32+00:00
State: open

How do I load a local script file? I tried the code below, however i got nothing beside a null for error.

jsdom.env("

test

", [
__dirname + '/scripts/jquery-1.7.1.js'
],
function(errors, window) {
$ = window.$;
console.log(errors);
});