diff --git a/src/commands/package/version/list.ts b/src/commands/package/version/list.ts index 58775a4a..b5f8a03e 100644 --- a/src/commands/package/version/list.ts +++ b/src/commands/package/version/list.ts @@ -148,12 +148,17 @@ export class PackageVersionListCommand extends SfCommand { }); it('should list package versions in dev hub - json results', () => { const command = `package:version:list -v ${session.hubOrg.username} --json`; - const output = execCmd<[PackageVersionListCommandResult]>(command, { ensureExitCode: 0 }).jsonOutput?.result; + const output = execCmd(command, { ensureExitCode: 0 }).jsonOutput?.result; const keys = [ 'Package2Id', 'Branch', @@ -345,7 +345,10 @@ describe('package:version:*', () => { ]; expect(output).to.have.length.greaterThan(0); expect(output?.at(0)).to.have.keys(keys); + const codeCoverage = output?.[0]?.CodeCoverage; + expect(codeCoverage).to.equal('use --verbose for code coverage'); }); + it('should list package versions in dev hub - verbose json results', () => { const command = `package:version:list --verbose -v ${session.hubOrg.username} --json`; const output = execCmd(command, { ensureExitCode: 0 }).jsonOutput