Test your service with actual Request and Response objects! The returned object includes
utilities for sending fetch requests and WebSocket connections to the service.
Make sure to use the kill output after your tests are finished. To automatically kill the
server, use describeService instead.
By default, this uses Fastify's request injection strategy to avoid using up real system ports.
To instead use an actual port, set port in the options parameter.
Test your service with actual Request and Response objects! The returned object includes utilities for sending fetch requests and WebSocket connections to the service.
Make sure to use the
kill
output after your tests are finished. To automatically kill the server, use describeService instead.By default, this uses Fastify's request injection strategy to avoid using up real system ports. To instead use an actual port, set
port
in the options parameter.