fix(cli): fix 13 CLI bugs — exit codes, sync tar fallback, variable encryption, JSON output (#8582)
* fix(cli): fix 13 CLI bugs — exit codes, sync tar fallback, variable encryption, JSON output, parent dirs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(cli): address PR review — TarAsZip.folder(), retry timeout, stderr hint Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(cli): update resource-type list test to handle empty state message Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -139,8 +139,10 @@ describe("resource-type commands", () => {
|
||||
);
|
||||
|
||||
expect(result.code).toEqual(0);
|
||||
// Table headers should be present
|
||||
expect(result.stdout).toContain("Name");
|
||||
// When empty, shows helpful message; when populated, shows table with Name header
|
||||
const hasTable = result.stdout.includes("Name");
|
||||
const hasEmptyMessage = result.stdout.includes("No custom resource types");
|
||||
expect(hasTable || hasEmptyMessage).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user