Skip to content

Commit

Permalink
fix: repurposes 'error' column, to show the metadata type
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Nov 13, 2024
1 parent 7ece831 commit a5dd182
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/formatters/deployResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,13 @@ export class DeployResultFormatter extends TestResultsFormatter implements Forma
ux.log();
ux.table({
data: sortBy(failures, ['problemType', 'fullName', 'lineNumber', 'columnNumber', 'error']).map((f) => ({
problemType: f.problemType,
type: f.type,
fullName: f.fullName,
error: f.error,
loc: f.lineNumber ? `${f.lineNumber}:${f.columnNumber ?? ''}` : '',
})),
columns: [
{ key: 'problemType', name: 'Type' },
{ key: 'type', name: 'Type' },
{ key: 'fullName', name: 'Name' },
{ key: 'error', name: 'Problem' },
{ key: 'loc', name: 'Line:Column' },
Expand Down
10 changes: 5 additions & 5 deletions test/utils/output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ describe('deployResultFormatter', () => {
expect(tableStub.firstCall.args[0]).to.deep.equal({
data: [
{
problemType: 'Error',
type: 'ApexClass',
fullName: 'ProductController',
error: 'This component has some problems',
loc: '27:18',
},
],
columns: [
{ key: 'problemType', name: 'Type' },
{ key: 'type', name: 'Type' },
{ key: 'fullName', name: 'Name' },
{ key: 'error', name: 'Problem' },
{ key: 'loc', name: 'Line:Column' },
Expand Down Expand Up @@ -106,21 +106,21 @@ describe('deployResultFormatter', () => {
expect(tableStub.firstCall.args[0]).to.deep.equal({
data: [
{
problemType: 'Error',
type: '',
fullName: 'Create_property',
error:
"An object 'Create_property' of type Flow was named in package.xml, but was not found in zipped directory",
loc: '',
},
{
problemType: 'Error',
type: 'ApexClass',
fullName: 'ProductController',
error: 'This component has some problems',
loc: '27:18',
},
],
columns: [
{ key: 'problemType', name: 'Type' },
{ key: 'type', name: 'Type' },
{ key: 'fullName', name: 'Name' },
{ key: 'error', name: 'Problem' },
{ key: 'loc', name: 'Line:Column' },
Expand Down

0 comments on commit a5dd182

Please sign in to comment.