nodeunit icon indicating copy to clipboard operation
nodeunit copied to clipboard

nodeunit and jquery (node-jquery) issue

Open thomasoriis opened this issue 13 years ago • 0 comments

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. (C:\Users\Thomas\chap02\node_modules\jquery\li 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)

Maybe an issue on my part - you need to verify.

thomasoriis avatar Nov 08 '12 21:11 thomasoriis