nodeunit and jquery (node-jquery) issue
I have a module that uses jQuery (node-jquery). When i run nodeunit tests i get an error. I need a way to ignore jquery from the tests - actually all modules because these modules are tested already.
How can I make nodeunit ignore module code?
This is from my terminal - I am developing on window 7 / cygwin.
C:\Users\Thomas\chap02\node_modules\jquery\lib\node-jquery.js:11
window.XMLHttpRequest.prototype.withCredentials = false;
^
TypeError: Cannot read property 'prototype' of undefined
at create (C:\Users\Thomas\chap02\node_modules\jquery\lib\node-jquer
at C:\Users\Thomas\chap02\node_modules\jquery\lib\node-jquery.js:943
at Object.
Maybe an issue on my part - you need to verify.