thlorenz / proxyquire

🔮 Proxies nodejs require in order to allow overriding dependencies during testing.
MIT License
2.75k stars 100 forks source link

NODE_PATH with proxyquire 1.7.5+ #126

Closed alif closed 8 years ago

alif commented 8 years ago

Since v1.7.5 I've been getting module not found errors and I believe it's related to NODE_PATH and likely related to this change with using node-resolve: https://github.com/thlorenz/proxyquire/compare/b624446b260fab0103b3cad339e6434858739589...4776b6958f7423d11b2504f6a2e1f32293dd74eb#diff-35740953abc60c3d609ae0fd6ce0f490R187

And it's most likely related to this issue in node-resolve - https://github.com/substack/node-resolve/issues/39

bendrucker commented 8 years ago

Check the latest, should fix it