From 7fadd6e5f165871fbfbde2f2fc286026e9078693 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 25 May 2025 19:36:15 +0200 Subject: [PATCH] Update invalid command test to match actual Swift CLI behavior --- scripts/prepare-release.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare-release.js b/scripts/prepare-release.js index f30634b..ff3f6d1 100755 --- a/scripts/prepare-release.js +++ b/scripts/prepare-release.js @@ -532,9 +532,9 @@ function checkSwiftCLIIntegration() { log('Testing Swift CLI error handling and edge cases...', colors.cyan); - // Test 1: Invalid command + // Test 1: Invalid command (since image is default, this gets interpreted as image subcommand argument) const invalidCmd = exec('./peekaboo invalid-command 2>&1', { allowFailure: true }); - if (!invalidCmd || (!invalidCmd.includes('Error:') && !invalidCmd.includes('Unexpected argument'))) { + if (!invalidCmd || !invalidCmd.includes('Unexpected argument')) { logError('Swift CLI should show error for invalid command'); return false; }