Open wmvm0 opened 3 years ago
I also face this problem. Do you solve this?
As a workaround, you can add this to your jest config:
moduleNameMapper: {
'@apps/(.*)': '<rootDir>/src/apps/$1',
},
Of course, replace apps
with whatever you need to point to
How do use this in unit tests ?
Cannot find module '@apps/funning/jd/pet/dto/enum' from 'src/apps/funning/jd/pet/service/impl/pet.service.ts'
Cannot resolve the configured path