jquery catching QUnit.done
<p>How can I catch QUnit.done from jquery.testHelper.js
<a href="https://github.com/jquery/jquery-mobile/blob/master/tests/jquery.testHelper.js" rel="nofollow">https://github.com/jquery/jquery-mobile/blob/master/tests/jquery.testHelper.js</a></p>

<p>I tried to define </p>

<pre><code>QUnit.done = function ( failed, passed, total, runtime ) {  
    alert("test");  
 }
</code></pre>

<p>but it's giving me "Uncaught ReferenceError: QUnit is not defined"</p>
