There doesn't seem to be a good way to hook into PhantomJS and add custom code. Maybe this could be accomplished by adding an onInitialized callback to the PhantomJS instance. This would be a huge improvement and would probably solve quite a few of the open issues here.
For anyone who needs to include helpers on the client side now, you can just put them in your client-side meteor code:
There doesn't seem to be a good way to hook into PhantomJS and add custom code. Maybe this could be accomplished by adding an
onInitialized
callback to the PhantomJS instance. This would be a huge improvement and would probably solve quite a few of the open issues here.For anyone who needs to include helpers on the client side now, you can just put them in your client-side meteor code:
This is still ugly since all test code should really go under
tests/
, notclient/
, but it's a quick workaround until there is better method.