Test your api with actual Request and Response objects! The returned object includes utilities
for sending fetch requests and WebSocket connections to the api.
Make sure to use the kill method on the output after your tests are finished. To automatically
kill the server, use describeApi 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 api with actual Request and Response objects! The returned object includes utilities for sending fetch requests and WebSocket connections to the api.
Make sure to use the
killmethod on the output after your tests are finished. To automatically kill the server, use describeApi instead.By default, this uses Fastify's request injection strategy to avoid using up real system ports. To instead use an actual port, set
portin the options parameter.