webbybot icon indicating copy to clipboard operation
webbybot copied to clipboard

mock hubot require to webbybot to use adapters directly

Open gasolin opened this issue 7 years ago • 1 comments

currently webbybot needs to modify the require('hubot') statement from every hubot-adapters, its not that convenient.

We can use mockery or mock-require to proxy hubot require to webbybot, so every hubot requirement will be redirected to webbybot

gasolin avatar Dec 12 '16 06:12 gasolin

or use proxyquire

gasolin avatar Dec 12 '16 07:12 gasolin