File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,11 @@ const formatResults = ({ results, thresholds }) => {
75
75
} ) ) ,
76
76
} ;
77
77
78
- return { summary, errors } ;
78
+ const shortSummary = categories
79
+ . map ( ( { title, score } ) => `${ title } : ${ score * 100 } ` )
80
+ . join ( ', ' ) ;
81
+
82
+ return { summary, shortSummary, errors } ;
79
83
} ;
80
84
81
85
const getConfiguration = ( { constants, inputs } ) => {
@@ -134,11 +138,12 @@ module.exports = {
134
138
if ( error ) {
135
139
throw error ;
136
140
} else {
137
- const { summary, errors } = formatResults ( { results, thresholds } ) ;
138
- console . log ( summary ) ;
139
- show ( {
140
- summary : JSON . stringify ( summary , null , 2 ) ,
141
+ const { summary, shortSummary, errors } = formatResults ( {
142
+ results,
143
+ thresholds,
141
144
} ) ;
145
+ console . log ( summary ) ;
146
+ show ( { summary : shortSummary } ) ;
142
147
143
148
if ( errors . length > 0 ) {
144
149
throw new Error ( `\n${ errors . join ( '\n' ) } ` ) ;
You can’t perform that action at this time.
0 commit comments