Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add caret to command and fix tests #292

Merged
merged 2 commits into from
Jul 6, 2022
Merged

Conversation

gbockus-sf
Copy link
Contributor

What does this PR do?

unpin @salesforce/command and fix tests. Note that pinning the module caused issues for cli b/c it results in long imports that break the circleci build.

What issues does this PR fix or reference?

@W-11385241@

@@ -30,7 +30,7 @@ describe('Apex Execute Tests', async () => {
beforeEach(async () => {
sandboxStub = createSandbox();

$$.setConfigStubContents('GlobalInfo', {
$$.setConfigStubContents('AuthInfoConfig', {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove all of these. This is essentially what $$.stubAuths() is doing for you

@gbockus-sf gbockus-sf marked this pull request as ready for review July 6, 2022 16:09
@gbockus-sf gbockus-sf requested a review from a team as a code owner July 6, 2022 16:09
@gbockus-sf gbockus-sf requested a review from RitamAgrawal July 6, 2022 16:09
authInfo: await AuthInfo.create({
username: testData.username
})
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two removed parts covered by stubAuths

@gbockus-sf gbockus-sf merged commit 38d6723 into main Jul 6, 2022
@gbockus-sf gbockus-sf deleted the gbockus/unpinCommand branch July 6, 2022 16:46
klewis-sfdc pushed a commit that referenced this pull request Oct 24, 2022
* fix: add caret to command and fix tests

@W-11385241@

* chore: remove unnecessary stub from tests. update yarn.lock
WillieRuemmele pushed a commit that referenced this pull request Jan 31, 2023
* fix: add caret to command and fix tests

@W-11385241@

* chore: remove unnecessary stub from tests. update yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants