Open viveleroi opened 8 years ago
I filed this bug officially with the Mocha team - mochajs/mocha#2424.
I can reproduce the problem but the issue is not with karma-requirejs
. It is with Mocha itself. Switch your frameworks so that they are like this:
frameworks: ['requirejs', 'mocha']
and the problem should be resolved. I'm going to explain why on the Mocha issue that fearphage filed.
This should be fixed in mocha@3.0.2 (publishing in a few minutes).
After upgrading to Mocha 3.0.0, karma-requirejs throws an error when trying to run tests:
Mismatched anonymous define() module: function () { return JSON3; }
This does not occur when I downgrade to Mocha 2.5.3.
I'm using:
We use gulp to activate the tests:
And I've reduced our karma.conf.js file to a very limited set:
Here's the full startup log: