Skip to content

Commit

Permalink
Cristi/push fix (#5441)
Browse files Browse the repository at this point in the history
* fix: diagnostics for push

* test: fixed tests
  • Loading branch information
CristiCanizales authored Feb 20, 2024
1 parent ba20ccf commit 367b702
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export class ProjectDeployStartResultParser {
message: this.response.message ?? 'Push failed. ',
name: this.response.name ?? 'DeployFailed',
status: this.response.status,
files: this.response.data ?? this.response.result.files
files: (this.response.data ?? this.response.result.files).filter(
(file: { state: string }) => file.state === 'Failed'
)
} as ProjectDeployStartErrorResponse;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export class ProjectRetrieveStartResultParser {
message: this.response.message ?? 'Pull failed. ',
name: this.response.name ?? 'RetrieveFailed',
status: this.response.status,
files: this.response.data ?? this.response.result.files
files: (this.response.data ?? this.response.result.files).filter(
(file: { state: string }) => file.state === 'Failed'
)
} as ProjectRetrieveStartErrorResponse;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('Correctly output deploy results', () => {
{ key: 'type', label: nls.localize('table_header_type') },
{ key: 'filePath', label: nls.localize('table_header_project_path') }
],
nls.localize('table_title_deployed_source')
nls.localize('table_title_pushed_source')
);
expect(output).to.be.equal(`${successTable}\n`);
});
Expand All @@ -105,7 +105,7 @@ describe('Correctly output deploy results', () => {
{ key: 'type', label: nls.localize('table_header_type') },
{ key: 'filePath', label: nls.localize('table_header_project_path') }
],
nls.localize('table_title_deployed_source')
nls.localize('table_title_pushed_source')
);
const expectedOutput = `${successTable}\n${nls.localize(
'table_no_results_found'
Expand Down

0 comments on commit 367b702

Please sign in to comment.