I have a client who is not ready to move to SFDX, so we are all working in sandboxes. Meanwhile, I am engaged in a non-trivial LWC development, so I need the help of Jest tests to keep me honest. Here is the dilemma:
- Jest extensions for LWC will not run without sfdx-project.json being present;
- If sfdx-project.json is present, IC will give me only SFDX connection operations, not traditional ones. E.g., I can call Pull and Push, but not Refresh, which I use a LOT in the sandbox environment where we have multiple developers working in the same org. (That’s another pain point with this project, but again, the decision was made over our heads by the client.)
I was wondering if there is a neat way to get past this. Right now I just keep renaming sfdx-project.json depending on whether I am trying to run Jest LWC tests, or persuade IC to refresh my metadata. But there must be a better way….