GitHub - epicweb-dev/test-server: Utility for creating HTTP and WebSocket servers for testing.
Briefly

This utility is designed for creating robust HTTP and WebSocket servers quickly, facilitating minimal test setup with the convenience of automatic server disposal.
By adhering to web standards and utilizing the Hono framework, this library ensures that both HTTP and WebSocket functionalities are seamlessly integrated for testing purposes.
The createTestHttpServer() function automatically manages server lifecycle, leading to efficient memory usage and eliminating the need for manual server closure during tests.
The provision for multiple protocols offers flexibility, allowing developers to spawn both HTTP and HTTPS servers easily, catering to diverse testing requirements.
Read at GitHub
[
]
[
|
]