question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QUnit 1.18.0 error with karma-qunit and requirejs.

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
ldezcommented, Apr 19, 2015

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

0reactions
neisbutcommented, Jun 9, 2016

@Idez+!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure Karma to work with requirejs and qunit
I'm trying to piece karma and requirejs together. but find a big issue cannot find any answer. I have a project using requirejs...
Read more >
QUnit
The powerful, easy-to-use JavaScript testing framework.
Read more >
TypeScript for quality of web code - Carsten Führmann
JavaScript has a type system, but it finds errors only when the code is run. Such type systems are called dynamic. Unlike static...
Read more >
Test-Driven JavaScript Development - Sample Chapter - Scribd
popular tools and frameworks, such as YUI, Karma, QUnit, ... filename in the errors section, then it will show details about the error...
Read more >
QUnit · Cheatsheets
QUnit is a JavaScript unit testing framework. ... <div id="qunit-fixture"></div> <script src="//code.jquery.com/qunit/qunit-1.18.0.js"></script> <script ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found