Peekaboo/tests/unit/utils
Peter Steinberger ab882069b4 fix: Add defensive validation for invalid image formats with automatic PNG fallback
Implements robust handling for invalid image formats (like 'bmp', 'gif', 'webp') that bypass schema validation:

- Added defensive format validation in image tool handler
- Automatic path correction to ensure file extensions match actual format used
- Warning messages in response when format fallback occurs
- Comprehensive unit and integration test coverage for edge cases

This ensures invalid formats automatically fall back to PNG as requested, preventing
Swift CLI rejection and incorrect file extensions in output paths.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 07:44:17 +01:00
..
ai-providers.test.ts Enhance Swift testing framework and test coverage 2025-06-07 23:57:26 +01:00
format-preprocessing.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
image-summary.test.ts Enhance Swift testing framework and test coverage 2025-06-07 23:57:26 +01:00
peekaboo-cli.test.ts feat: Add fuzzy matching for application names 2025-06-08 05:22:58 +01:00
server-status.test.ts Implement missing best practices 2025-05-26 23:46:03 +02:00
zod-to-json-schema.test.ts Fix test expectation for unknown type fallback 2025-05-27 01:11:10 +02:00