@@ -15,10 +15,9 @@ import {
1515} from '@salesforce/source-deploy-retrieve' ;
1616import { SourceMemberPollingEvent } from '@salesforce/source-tracking' ;
1717import terminalLink from 'terminal-link' ;
18- import { ensureArray } from '@salesforce/kit' ;
1918import ansis from 'ansis' ;
2019import { testResultSort } from '../formatters/testResultsFormatter.js' ;
21- import { check , getZipFileSize } from './output.js' ;
20+ import { getZipFileSize } from './output.js' ;
2221import { isTruthy } from './types.js' ;
2322
2423Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url ) ;
@@ -27,7 +26,6 @@ const mdTransferMessages = Messages.loadMessages('@salesforce/plugin-deploy-retr
2726type Options = {
2827 title : string ;
2928 jsonEnabled : boolean ;
30- verbose ?: boolean ;
3129} ;
3230
3331type Data = {
@@ -64,7 +62,7 @@ export class DeployStages {
6462 */
6563 private printedApexTestFailures : Set < string > ;
6664
67- public constructor ( { title, jsonEnabled, verbose } : Options ) {
65+ public constructor ( { title, jsonEnabled } : Options ) {
6866 this . printedApexTestFailures = new Set ( ) ;
6967 this . mso = new MultiStageOutput < Data > ( {
7068 title,
@@ -149,8 +147,7 @@ export class DeployStages {
149147 label : 'Successful' ,
150148 get : ( data ) : string | undefined =>
151149 data ?. mdapiDeploy ?. numberTestsTotal && data ?. mdapiDeploy ?. numberTestsCompleted
152- ? formatProgress ( data ?. mdapiDeploy ?. numberTestsCompleted , data ?. mdapiDeploy ?. numberTestsTotal ) +
153- ( verbose && isCI ( ) ? os . EOL + formatTestSuccesses ( data ) : '' )
150+ ? formatProgress ( data ?. mdapiDeploy ?. numberTestsCompleted , data ?. mdapiDeploy ?. numberTestsTotal )
154151 : undefined ,
155152 stage : 'Running Tests' ,
156153 type : 'dynamic-key-value' ,
@@ -287,21 +284,6 @@ export class DeployStages {
287284 }
288285}
289286
290- function formatTestSuccesses ( data : Data ) : string {
291- const successes = ensureArray ( data . mdapiDeploy . details . runTestResult ?. successes ) . sort ( testResultSort ) ;
292-
293- let output = '' ;
294-
295- if ( successes . length > 0 ) {
296- for ( const test of successes ) {
297- const testName = ansis . underline ( `${ test . name } .${ test . methodName } ` ) ;
298- output += ` ${ check } ${ testName } ${ os . EOL } ` ;
299- }
300- }
301-
302- return output ;
303- }
304-
305287function formatTestFailures ( failuresData : Failures [ ] ) : string {
306288 const failures = failuresData . sort ( testResultSort ) ;
307289
0 commit comments