Closed jehoshua02 closed 9 years ago
Instead of require('../../../../path/to/module/ugh') in our tests we can simply do require('app/path/to/module/yay'). This makes organizing tests into subdirectories easier since module path is relative to project root.
require('../../../../path/to/module/ugh')
require('app/path/to/module/yay')
Instead of
require('../../../../path/to/module/ugh')
in our tests we can simply dorequire('app/path/to/module/yay')
. This makes organizing tests into subdirectories easier since module path is relative to project root.