caolan / caolan/nodeunit

nodeunit and jquery (node-jquery) issue

オープン
#180 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.9k
フォーク
359
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、Windows/Cygwin 上で node-jquery を必要とする nodeunit テストを、node-jquery.js のスタックトレースを入口として再現します。失敗の原因が nodeunit なのか依存関係なのかを特定します。完了の条件は、原因が確認され、具体的で再現可能な変更または文書化された制限が示されていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jquery, node.js
領域
testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。