yahoo/mojito — pull request #134 by goatslacker (2012-04-16 23:35:20+00:00)
Title: Mojito test broken when using node modules

### Summary

When running `mojito test app .` the tests fail because an npm module cannot be found.

### How to reproduce

Add an addon to your project. Say `addons/ac/addons-ac-logger.js`

In the addons file we'll use a module from npm [winston](http://search.npmjs.org/#/winston), this is installed via npm install winston and resides in the `node_modules` of the root.

Now since paths don't quite work the same in YUI3-node as they do in node we'll use a relative path inside our logger.js file:

var winston = require('./../../node_modules/winston');

When we run `mojito test app .` it fails

error: (nodejsyui3): Error: Cannot find or access denied to the module 'addons/ac/../../node_modules/winston'