Skip to content

Add comprehensive test suite#4

Merged
cmer merged 1 commit intomainfrom
cmer/expand-test-suite
Mar 7, 2026
Merged

Add comprehensive test suite#4
cmer merged 1 commit intomainfrom
cmer/expand-test-suite

Conversation

@cmer
Copy link
Owner

@cmer cmer commented Mar 7, 2026

Expands test coverage from 16 to 62 tests, thoroughly validating core functionality across the entire codebase.

New test files:

  • test/webhooks.test.js: 34 tests covering webhook capture, REST API CRUD operations, SSE event broadcasting, and max webhook limits
  • test/remote-access.test.js: 11 tests validating remote access guard behavior with/without --allow-remote-access flag

Validates HTTP methods (GET, POST, PUT, PATCH, DELETE), request properties (headers, query strings, body), response codes, error handling, and security features.

Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com

…rols

Added 46 new tests across two test files:
- test/webhooks.test.js: webhook capture, CRUD API, SSE events, max limits, favicon handling
- test/remote-access.test.js: remote access guard with/without --allow-remote-access flag

Total test count now 62 (from 16), providing robust coverage of core functionality.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@cmer cmer merged commit d338a53 into main Mar 7, 2026
3 checks passed
@cmer cmer deleted the cmer/expand-test-suite branch March 7, 2026 19:27
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.

1 participant