QUnit 1.18.0 error with karma-qunit and requirejs.
See original GitHub issueI 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:
- Created 8 years ago
- Comments:21 (7 by maintainers)
Top 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 >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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The problem can be dirty solve like that: in
karma.conf.js
replaceframeworks: [ 'qunit', 'requirejs'],
byframeworks: [ 'requirejs', 'qunit'],
@Idez+!