arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

pass server, client to before/afterEach Mocha hooks #60

Open kschzt opened 11 years ago

kschzt commented 11 years ago

Hi,

Would be great to do some repetitive startup/shutdown logic (like creating a user and logging in) in the hooks before/after running the actual tests. It would make the test code a lot cleaner too.

Could we pass the server and clients to these functions as well? Is the environment already running at that point?

Thanks.

apendua commented 10 years ago

@kschzt Please see #121