Closed lgo closed 8 years ago
Hi again, I've published 0.4.0
to npm.
Can you test for that issue again?
I'm pretty sure I still experience this issue. I'm on 0.5.2. It seems no matter what I put in grunt.initConfig like:
nightwatch: { options: { globals: {'foo':'bar'} } }
It all gets stripped out by whatever is in nightwatch.json
Interesting, I'll work on that asap.
Thanks for your feedback!
Sorry my bad. I think I just didn't nest the options properly to match what I had in my nightwatch.json file. I debugged your code pretty well and it works :)
Holy moly! :beers:
While the globals_path is not set in the nightwatch Gruntfile options, it still overrides any globals_path set by the nightwatch.json and makes the browser.globals object an empy object if not supplied.
Note, it seems to override browser.globals with the nightwatch.json globals variable, and if undefined it overrides it with an empty object - removing the contents of global_path.