Hi, I have issue on running my pipeline. I just added it manually for "Build and test a NodeJs code". when I run it, I got this error. any idea? thanks..
Hi Loremuel and welcome to the community!
Based on the output, this looks like an issue with a specific dependency, https://github.com/testing-library/jest-dom.
Every Pipelines step runs in a Docker container based on the image you have specified in your bitbucket-pipelines.yml file. If you install Docker on your machine, you can follow this guide to debug this Pipelines step locally with Docker:
If you get the same error when following this guide, then the issue is not specific to Pipelines. Perhaps this dependency is missing and you need to install it during the build or it might be another issue with your source code. If you cannot figure it out, you could reach out to the dev team of this extension by raising an issue in their issue tracker here: https://github.com/testing-library/jest-dom/issues.
Kind regards,
Theodora
Is 'npm install' and 'npm test' in different steps? You typically want them in the same step, as part of the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.