In a cucumber feature_steps.js file, I want to use chai, so I write:
chai = require('chai');
However, cucumber fails saying that that it can’t find the module chai, even though it is used by xolvio:cucumber itself. I can get things to work with:
cd tests/cucumber mkdir node_modules cd node_modules ln -s ~/.meteor/packages/xolvio_cucumber/.0.6.0.skb9g1++os+web.browser+web.cordova/npm/node_modules/chai .
Is that the correct approach or is there a better way? If that is the correct approach, is there a way to ensure that other developers get chai installed in the correct spot without adding tests/cucumber/node_modules to my git repo?
P.S. I’m a node/meteor/velocity/cucumber noob so I could be missing something really obvious here.