Client Test and Server Test run at the same time!


#1

Hey,
I just saw that client and server test run at the same time. This is cool but … when you use resetDatabase on client side with a meteor methods, some server test falling ( ref: https://guide.meteor.com/testing.html#test-data ).
Nobody have facing this before ? Some feedback interesting me a lot…


#2

Oh right, for anybody facing this is issue, this a undocumented environment variable :
export MOCHA_RUN_ORDER=serial on your terminal and,
"meteor test --driver-package practicalmeteor:mocha "
THIS, will run the server test code before. Hope it help someone.
I’m loosing a day for this. It will be great on Meteor Test docs to had this little tricky things.
ref : https://github.com/meteor/meteor/issues/7527


#3

You should send a PR or create a new issue to add to docs.
So, other folks wouldn’t lose time on that issue as you did.