Velocity freezes when testing meteor app

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, "".

, !

, :)

+4
1

, .

, , , :

  • node

    node -v

    v0.10.35

  • node. mac :

    brew update && brew upgrade node

    , Google .

  • meteor list

    - 1.2.1

    mike: mocha 0.5.1

    : ​​0.4.5

  • meteor --version

    Meteor 1.0.2.1

  • meteor update

, . , Github Velocity.

+4

All Articles