Fix Swift CLI invalid command test to match actual error output

This commit is contained in:
Peter Steinberger 2025-05-25 19:34:25 +02:00
parent 228ee053b2
commit 4e640fc297

View file

@ -534,7 +534,7 @@ function checkSwiftCLIIntegration() {
// Test 1: Invalid command
const invalidCmd = exec('./peekaboo invalid-command 2>&1', { allowFailure: true });
if (!invalidCmd || !invalidCmd.includes('Error') && !invalidCmd.includes('USAGE')) {
if (!invalidCmd || (!invalidCmd.includes('Error:') && !invalidCmd.includes('Unexpected argument'))) {
logError('Swift CLI should show error for invalid command');
return false;
}