Open shaley91 opened 9 years ago
Hi shaley91, good spot! I've known about this issue for quite some time, finding the time to fix it has been a task in it's own right. I'm not so sure removing that line will fix the issue entirely, but the good news is, I know what the cause of the issue is - for some reason the module context for that help script is bound to the module caller, not to Actuator itself - I am very sure the fact that Actuator is compiled to javascript whereas that script is CoffeeScript has something to do with it. I do want to fix it ASAP, but for now, just npm install hubot --save-dev
in the root of your script's folder.
If you want to take a stab at fixing this yourself, we do welcome pull requests :)
I have a hubot repo that contains some custom scripts. I am trying to write tests for these scripts and get this error message
Error: Cannot find module /node_modules/hubot/src/scripts/help'
When I clone this repo and run
npm test
I also get a similar error message.I think this is because the help script is no longer located inside the hubot repo. If you remove this line then everything works: https://github.com/io-digital/actuator/blob/7a1def9e9637afd519f6f4fac84e59ddbf1ba7c0/lib/index.coffee#L38