visionmedia/mocha — Issue #285: relative --require breaks on folders, shouldn't be necessary
Author: gfxmonk
Created: 2012-02-25 00:25:29+00:00
State: open

I happened to have the "should.js" repo checked out in a folder called "should.js" of my cwd, and this broke the tests because it tried to load that instead of the "should" that was actually correctly placed in $NODE_PATH.

I'd argue if your dependencies are not in $NODE_PATH or already fully-qualified you're doing it wrong, so I think this feature should be taken out. But if it is to be left in, it should:

- ignore directories
- support "modname/index.js" style modules

But really, it should be unnecessary.