Question regarding the define in QUnit

Question regarding the define in QUnit

Hi,

We have observed that with new QUnit upgrade our tests have been failing with multipleDefine errors.

After investigating the cause, it looks like in AMD there are problems when multiple script tags are doing define. And we hit the issue since both our runner.js and QUnit do define that are pulled with script tags.

if ( typeof define === "function" && define.amd ) {

    define( function() {

        return QUnit;

    } );

    QUnit.config.autostart = false;

}

Is there a reason to do define in QUnit? We were considering removing that section while using it and wanted to know the significance of having it.