Has anyone found a solution to this problem yet? I encounter the same issue, specifying paths either directly in the jest.config.js or using pathsToModuleNameMapper
jest.config.js
pathsToModuleNameMapper