I'm using require.main.require in a node module to require another module to avoid relative paths.

jasmine will throw a not found exception when I test that module.

Is there anyway to keep using require.main.require? Any best practice?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.