There are 3 problems with the code:
- It should not call mocha.setup(), as is now explained in the README.
- The function calls to setup Ember.js for testing should happen outside any Mocha callback, not in
before()
. mocha.run()
should be called like this:Ember.$(function() { mocha.run(); });
Here is the fixed JS Bin testcase.
Teddy Zeenny found the solution to this problem in teddyzeenny/ember-mocha-adapter#18.