Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jest resolve not working in pipelines

Beatriz Rizental
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2019

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?

 

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events