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?
|
I'm using jasmine will throw a not found exception when I test that module. Is there anyway to keep using require.main.require? Any best practice? |
|||
|
|
|
asked |
today |
|
viewed |
4 times |
| Technology | Life / Arts | Culture / Recreation | Science | Other | ||||||
|---|---|---|---|---|---|---|---|---|---|---|