qunit and requirejs

qunit and requirejs

Just posted this on SO, wondered if I'd have more luck here:

'm using QUnit to test my JavaScript. I'm also using requirejs. I have test code which looks like this:

QUnit.config.autostart = false; require(['tests/tests'], function () { QUnit.start(); //Tests loaded, run tests }); 

This works great in FF (19.0.2 as it happens) but in both Chrome (27) and IE (10), I'm getting a QUnit error:

"pushFailure() assertion outside test context"

Turns out that I don't need the call to QUnit.start in IE and Chrome. Anybody else seen this or have any suggestions as to why?

It appears that Chrome and IE are ignore the autostart setting


Kevin Jones