I have two ideas: 1) try to use exports, not module.exports. Here is the difference: http://www.hacksparrow.com/node-js-exports-vs-module-exports.html
2) I encountered similar problem when testing my code with invalid environment. I had a Makefile which was running mocha tests but doesn't set proper working directory and environment variables for the Node so it can't load my modules. Maybe you could investigate in that direction. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
