I just added jest tests to my pipeline and I'm having an issue with the jest resolver that I can't figure out how to fix. I have some jest resolves like this one:
"^subpackage(.*)$": "<rootDir>/node_modules/@package/subpackage$1"
Locally the resolve works fine, but in the pipelines I get an error. I am using lerna and the error occurs while resolving a symlinked package, but I'm not sure it is related to that. I think it could be something to do with the <rootDir> and the path it is trying to resolve.
If it is needed, this is path that my resolve translates to:
<span>/opt/atlassian/pipelines/agent/build/packages/app/node_modules/@package/subpackage/lib/util.</span>
Does anyone know what's is going on here?