import bar from './lib/foo' in a test file in the package specs folder I’m getting the following error when running package specs:
Error: Cannot find module './lib/foo'
While this does work in a file in the lib folder (file does exists)! The workaround is to use
'../lib/foo' (notice the two dots).
My question is why this doesn’t work in the specs folder… bug or another reason?