test: add comprehensive session management tests to improve patch coverage
- Add 37 test cases covering all session management features - Test session creation, limits, expiration, and cleanup - Test security features including production mode validation - Test transport management and cleanup - Test new DELETE /mcp endpoint for session termination - Test enhanced health endpoint with session statistics - Improve statement coverage from 50.43% to 71.94% - Improve function coverage from 55.55% to 80.95% This addresses the codecov patch coverage failure by adding tests for the ~600 new lines of session management code. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1065
tests/unit/http-server-session-management.test.ts
Normal file
1065
tests/unit/http-server-session-management.test.ts
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user