Questions tagged [sfdx]

41 questions
0
votes
1 answer

LWC Jest Test showing show error in Azure Devops Pipelines

When i running Jest test for LWC in azure pipelines i got strange error Cannot find module 'c/myComponent' from 'force-app/main/default/lwc/myComponent/__tests__/myComponent.test.js' 1 | import { createElement } from 'lwc'; > 2 | import…
Cezu
  • 82
  • 10
0
votes
0 answers

How to make a CumulusCI scratch org available for other projects in a GitHub Action workflow?

"I've created a scratch org via CumulusCI within a GitHub Action workflow using a cci flow, and I need to make it available for other projects in the same workflow (robot framework tests project for example). What steps do I need to take to achieve…
0
votes
0 answers

Azure Devops Pipelines - pipeline not see cached NPM - SFDX command

Hello i tried to use SFDX in azure devops pipeline and use a cached npm (sfdx + plugins) from this solution https://learn.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops But after cache reuse and try to install there is…
Cezu
  • 82
  • 10
0
votes
0 answers

UNABLE_TO_GET_ISSUER_CERT_LOCALLY Node.js NPM SFDX update command

Please help I am not able to do the sfdx update or login to the org using VS Code, Node.Js and NPM? Note: I am behind a corporate firewall/proxy. Error I am getting: C:\vijay\D Drive\Vijay\Learning\SFDC\Projects\VSCodeQuickstart> sfdx update…
Arjun
  • 1
  • 2
0
votes
0 answers

Bitbucket Pipelines export into variable using jq and xq causes error

When i running a pipeline in bitbucket i want to export into variable using export APEX_CLASSES=$(xq . < package/package.xml | jq '.Package.types | [.] | flatten | map(select(.name=="ApexClass")) | .[] | .members | [.] | flatten | map(select(. |…
Cezu
  • 82
  • 10
0
votes
2 answers

Running PMD in GitLab CI Script doesn't work unless echo command is added after the script runs

This is an interesting issue. I have a GitLab project, and I've created a .gitlab-ci.yml to run a PMD that will scan my code after every commit. The ci.yml file looks like this: image: "node:latest" stages: - preliminary-testing apex-code-scan: …
Tyler Edwards
  • 184
  • 2
  • 9
0
votes
1 answer

Is there a way to generate sfdx auth url for scratch org if devhub is authorized using the jwt bearer flow?

In our CICD pipelines, we used to authorize devhub first using sfdx auth url and then create scratch orgs using same devhub. We use the command "sfdx force:org:display --verbose" to get the sfdx auth urls of the scratch orgs which we subsequently…
bikash_sb
  • 11
  • 2
0
votes
1 answer

how to get reference to the element hidden in lwc?

I am learning lwc and I came across this problem. I have the following code. html: