osher/e2e-helper

I would like to pass env variables to the target script

idandagan opened this issue · 2 comments

I would like to be able to direct e2e-helper to propagate env variables to the target script

osher commented

oups. silly me.
it's actually supported, but not documented.

All you have to do is provide options.env as a map of the settings you wish to pass.
the options you pass end up as ctx in the following line:
https://github.com/osher/e2e-helper/blob/master/lib/index.js#L260

I'm leaving the issue open until I'll fix the docs

osher commented

omg. it's even tested, just not documented ... 😛