Skip to content

Refactor Phase 3 tests to use skipIfEndpointUnavailable() utility - #381

Merged
malibio merged 1 commit into
mainfrom
feature/issue-227-refactor-test-utility
Nov 3, 2025
Merged

malibio merged 1 commit into
mainfrom
feature/issue-227-refactor-test-utility

Conversation

@malibio

@malibio malibio commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

Closes #227

Replaced 10 instances of inline error handling pattern with centralized
skipIfEndpointUnavailable() utility function across 3 test files.

Changes:
- Added skipIfEndpointUnavailable import to all 3 test files
- Refactored 6 instances in regression-prevention.test.ts
- Refactored 3 instances in edge-cases.test.ts
- Refactored 1 instance in integration-scenarios.test.ts
- Reduced duplicated code from ~100 lines to ~30 lines (70% reduction)
- Improved maintainability with single source of truth for error handling

All tests passing with identical behavior. No functional changes.

Closes #227

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

Co-Authored-By: Claude <[email protected]>
@malibio
malibio merged commit 7e91814 into main Nov 3, 2025
@malibio
malibio deleted the feature/issue-227-refactor-test-utility branch November 3, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor Phase 3 tests to use skipIfEndpointUnavailable() utility

1 participant