In my project, I'm trying to configure Mocha to run Chai tests, but I have a problem when the tests just don't work. The browser reports that no tests pass, fail, or fail.
Here is the code for the tests:
import {assert} from 'chai'; import {Meteor} from 'meteor/meteor'; if (Meteor.isclient) { describe('Recipe model', function () { it('should test that a recipe is created', function () { assert.isTrue(true); }); }); }
I run the test using the following command:
meteor test --driver-package practicalmeteor:mocha
I installed a practical meteorite: chai as well. A google search suggested putting chai.should () at the beginning of my test, but that didn't help. I am open to all suggestions.
Hooray!
source share