Open reywood opened 7 years ago
Also curious about this. I'm not currently using Mocha for my Meteor projects, but a github user reported an issue and I noticed that he was using a beforeEach on tests and the client test was wiping out the server data: https://github.com/nicklozon/meteor-collection-revisions/issues/2#issuecomment-302268660
In Meteor just use Meteor.isClient | Meteor.isServer and that'll separate the concerns.
@ArnieGA That will not fix this problem.
Ugh! My fault...didn't realize your issue was related to the need of setting up some stuff before running the tests and not the client/server test code running at the same time.
On my case i currently:
If i write server tests, they will run simultaneously but i wish the server tests to run after the client tests so I can check if notifications for other users were created, etcs.
It appears that client app tests and server app tests are run simultaneously. This makes it really hard to run client and servers app tests that need to do some database setup beforehand. I've created a simple meteor app that demonstrates the simultaneous running of tests.
https://github.com/reywood/practicalmeteor-mocha-simultaneous-tests