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

Sh/push json regression #828

Merged
merged 6 commits into from
Apr 27, 2023
Merged

Sh/push json regression #828

merged 6 commits into from
Apr 27, 2023

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Apr 27, 2023

What does this PR do?

Removes the catch function from push. Adds the context property to the SfError that will now rely on SfCommand.catch to format an error that does not break backward compatibility. Adds a few more tests around this.

What issues does this PR fix or reference?

@W-13100374@

@@ -127,7 +127,34 @@ describe('conflict detection and resolution', () => {
});

it('gets conflict error on push', () => {
execCmd<PushResponse>('force:source:push --json', { ensureExitCode: 1 });
const pushResponse = execCmd<PushResponse>('force:source:push --json', { ensureExitCode: 1 });
Copy link
Contributor

Choose a reason for hiding this comment

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

nice to have all that detail in here.

@WillieRuemmele WillieRuemmele merged commit 1d36f6f into main Apr 27, 2023
@WillieRuemmele WillieRuemmele deleted the sh/push-json-regression branch April 27, 2023 21:54
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