0👍
✅
I was able to fix it by setting:
"type": "module"
in the the modules’ package.json
, together with adding it to transformIgnorePatterns
in jest.config.js
of the project consuming it, as shown above.
Source:stackexchange.com