caolan / caolan/nodeunit

nodeunit and jquery (node-jquery) issue

Open
#180 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.