How to have full-app tests wait for server initialisation?

Hello there.

I think I have errors running my full-app tests because they start executing before the server has finished initializing. Mainly, the mongo migrations (package percolate:migrations) will execute while the tests are running instead of before them.

Question: How can I have my tests wait for initialization to complete or how can I run migrations sooner? Currently, I start migrations in a Meteor.startup() function as per the documentation.

Thank you very much!

Remy

1 Like