I found a solution - adding the package name into the transformIgnorePatterns configuration (under jest.config file) resolved the issue. It tells to Jest to compile the package files and so the "export" error is gone.
transformIgnorePatterns
jest.config