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:
/opt/atlassian/pipelines/agent/build/packages/app/node_modules/@package/subpackage/lib/util.
Does anyone know what's is going on here?
Hi Beatriz,
Can you post the full error message you're getting here? That'll help us pin point the issue a bit more.
When you tested locally, did you try debugging inside of a Docker container? There may be some settings your machine may already have that fix this issue. https://confluence.atlassian.com/bitbucket/debug-your-pipelines-locally-with-docker-838273569.html
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.