exports is not defined
[Break On This Error]
extend(exports, QUnit);
What steps will reproduce the problem?
1. Run qunit in an amd module based on require js
What is the expected output? What do you see instead?
N/A
What version of the product are you using? On what operating system?
qunit 1.5, firefox 10, Chrome 18
Please provide any additional information below.
In my special case we are using qunit to test dojo toolkit components.
I think this is more of a general problem with the detection of environment,
since you test for typeof require === "undefined", which would be false in case
of requirejs/dojo, still requirejs/dojo does not define an exports object.
This test is causing the error to occur:
define(
[ ],
function () {
test("Test", function(){
equal(1, 1);
});
}
);
Original issue reported on code.google.com by tommys...@gmail.com on 21 May 2012 at 11:02
Original issue reported on code.google.com by
tommys...@gmail.com
on 21 May 2012 at 11:02