Conversation
Follows-up c0f8f22.
The original QUnit indeed used a plethora of global variables similar to Mocha and various other JS testing frameworks from that era. I believe the idea is that the testing framework would be given a dedicated web page (or Node.js process) with no other libraries present, where it then exports its functions as a way of almost augmenting the language syntax with additional operators. The complete rewrite, as done by yours truly and team, deprecated these in QUnit 1.16, in favour of a more lexically bound API (QUnit 2.0).
For what it's worth, the CommonJS spec actually describes |
Follows-up c0f8f22.