Peekaboo/tests/unit/tools
Peter Steinberger 4a2d802977 fix: Handle empty provider_config gracefully and improve case-insensitive targets
- Fix "Cannot convert undefined or null to object" error when provider_config is empty
- Make frontmost target case-insensitive (frontmost, FRONTMOST, Frontmost)
- Make window specifiers case-insensitive (WINDOW_TITLE, window_title, Window_Title)
- Add comprehensive test coverage for empty/null provider_config scenarios
- Improve error handling to prevent spread operator failures on undefined _meta

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 08:20:30 +01:00
..
analyze-edge-cases.test.ts test: Add comprehensive edge case tests for image and analyze tools 2025-06-08 06:50:10 +01:00
analyze.test.ts fix: Handle empty provider_config gracefully and improve case-insensitive targets 2025-06-08 08:20:30 +01:00
defensive-format-validation.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
edge-case-fixes.test.ts fix: Handle edge cases for invalid screen index and JSON null paths 2025-06-08 07:53:21 +01:00
image-edge-cases.test.ts Fix tests to match new executeSwiftCli signature with timeout parameter 2025-06-08 07:24:02 +01:00
image.test.ts fix: Prevent security vulnerability from malformed app targets 2025-06-08 08:16:39 +01:00
improved-window-error-messages.test.ts feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00
invalid-format.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
list.test.ts Fix array parameter parsing for include_window_details 2025-06-08 07:40:14 +01:00
multiple-app-matches.test.ts feat: Capture all windows from multiple exact app matches instead of erroring 2025-06-08 08:00:44 +01:00
path-traversal-error-handling.test.ts fix: Correct error handling for path traversal and file system errors 2025-06-08 08:05:03 +01:00
window-title-matching.test.ts feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00