When I try to run a unit test I get following error:

C:\users\thomas\chap02\node_modules\jquery\lib\node-jquery.js:10
window.XMLHttpRequest.prototype.withCredentials = false;
^
TypeError: Cannot read property 'prototype' of undefined
at create (C:\users\thomas\chap02\node_modules\jquery\lib\node-jquery.js:10:26)
at C:\users\thomas\chap02\node_modules\jquery\lib\node-jquery.js:9435:18
at Object.<anonymous>
(C:\users\thomas\chap02\node_modules\jquery\lib\node-jquery.js:9437:2)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (C:\users\thomas\chap02\lib\exchange.js:3:9)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (C:\users\thomas\chap02\test\exchange.test.js:7:14)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at C:\users\thomas\chap02\node_modules\mocha\bin\_mocha:313:27
at Array.forEach (native)
at load (C:\users\thomas\chap02\node_modules\mocha\bin\_mocha:310:9)
at Object.<anonymous>
(C:\users\thomas\chap02\node_modules\mocha\bin\_mocha:301:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Makefile:2: recipe for target `test' failed
make: *** [test] Error 1

I am developing on windows 7 with Cygwin so I have a shell in some flavor.

Do you know a way to keep modules code out of the test scope - no need to test module code (already tested)?

Or do you know how to make this work?

Thanks ; )