Skip to content

Conversation

azu
Copy link
Member

@azu azu commented Aug 16, 2025

Summary

  • Implements a local test server to replace the external httpstat.us service that is no longer available
  • Re-enables previously disabled redirect tests
  • Adds support for testing User-Agent requirements

Changes

  • Added test/test-server.ts with a Node.js HTTP server that simulates various response codes (200, 301, 302, 404, 500)
  • Updated test/no-dead-link.ts to use the local test server on port 35481
  • Re-enabled redirect tests that were previously disabled due to httpstat.us being down
  • Added test cases for User-Agent requirement validation

Test plan

  • All existing tests pass
  • Previously disabled redirect tests now work with local server
  • New User-Agent requirement tests added and passing
  • Server properly starts before tests and stops after tests complete

Closes #157

🤖 Generated with Claude Code

Closes #157

- Add local test server with various HTTP status code endpoints (200, 301, 302, 404, 500)
- Support User-Agent requirement testing
- Re-enable previously disabled redirect tests
- Remove dependency on external httpstat.us service
- Use fixed port (35481) for consistent test execution

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

Co-Authored-By: Claude <[email protected]>
@azu azu added the Type: Testing Adding missing tests or correcting existing tests label Aug 16, 2025
@azu azu merged commit 8afadf1 into master Aug 16, 2025
12 checks passed
@azu azu deleted the feat/test-server branch August 16, 2025 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Testing Adding missing tests or correcting existing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a server for testing

1 participant