qunit: QUnit 1.18.0 error with karma-qunit and requirejs.

I get this error when testing my application with QUnit 1.18.0:

PhantomJS 1.9.8 (Linux) ERROR
  Error: Mismatched anonymous define() module: function () {
        return QUnit;
    }
  http://requirejs.org/docs/errors.html#mismatch
  at /home/travis/build/ccnmtl/dmt/node_modules/requirejs/require.js:141
PhantomJS 1.9.8 (Linux): Executed 0 of 0 ERROR (0.044 secs / 0 secs)
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

Build log is here: https://travis-ci.org/ccnmtl/dmt/builds/57026820

Downgrading to 1.17.1 fixes the issue.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 21 (7 by maintainers)

Most upvoted comments

The problem can be dirty solve like that: in karma.conf.js replace frameworks: [ 'qunit', 'requirejs'], by frameworks: [ 'requirejs', 'qunit'],