#test e2e. Problems with modules.

1 messages · Page 1 of 1 (latest)

full python
#

I am having this problem with a module that I have imported in the test and I don't know how to solve it.

#

`Test suite failed to run

Cannot find module 'src/modules/user/user-repository' from '../src/configs/redis/redis.module.ts'`
main moat
#

Show dir tree

full python
frigid ibex
#

In my experience VSCode will tell you it is properly imported with src/

#

But in the practice, you have to import with ../src/

#

If your structure has, as by default, src and test at the same level

#

Moreover: If you are using jest, it will recognise better the relative paths even if there is no compilation error with src based ones