I am new to meteorites, so I am just writing a simple application, but really want to make it TDD as best as possible (it is worth mentioning that I am also new to Mocha). So I added the packages mike:mochaand velocity:corewrote a super simple initial test to see if I can make it work, which I added in the /mocha/client/tests.js tests:
if (typeof MochaWeb != 'undefined') {
MochaWeb.testOnly(function () {
describe('Friends are added successfully', function () {
it('Should add a new person to the Friend collection', function(done) {
var friendId = Friends.insert(
{ firstName: 'New',
lastName: 'Friend'});
var friend = Friends.findOne({'firstName':'New'});
console.log(friend);
chai.assert.equal(friend.length === 1);
done();
});
});
})
;}
My problem is that when I run the command meteoror meteor --test, I get nothing in the terminal except the expected one:
=> Started proxy.
=> Started MongoDB.I20150115-22:31:03.216(0)? [velocity] chokadir watching /correctDirectory/tests
=> Started your app.
=> App running at: http://localhost:3000/
Velocity ( - ), . , ! localhost: 5000, "".
, !
, :)