diff --git a/src/cli/commands/test/formatters/format-test-meta.ts b/src/cli/commands/test/formatters/format-test-meta.ts index 3d143d78b5..3c9d4e7c34 100644 --- a/src/cli/commands/test/formatters/format-test-meta.ts +++ b/src/cli/commands/test/formatters/format-test-meta.ts @@ -13,9 +13,9 @@ export function formatTestMeta( const packageManager = res.packageManager || options.packageManager; const targetFile = res.targetFile || res.displayTargetFile || options.file; const openSource = res.isPrivate ? 'no' : 'yes'; - const meta = [ - chalk.bold(rightPadWithSpaces('Organization: ', padToLength)) + res.org, - ]; + const meta = res.org + ? [chalk.bold(rightPadWithSpaces('Organization: ', padToLength)) + res.org] + : []; if (options.iac) { meta.push( chalk.bold(rightPadWithSpaces('Type: ', padToLength)) +