testing/round_trip.ts view source
(options: RoundTripTestOptions): void Run schema-driven round-trip validation tests.
For each route: 1. Resolve URL with valid params 2. Generate a valid request body (or use override) 3. Pick auth headers matching the route's auth requirement 4. Fire the request and validate the response against declared schemas
SSE routes are skipped (Content-Type text/event-stream).
Routes returning non-2xx with valid input are still validated against
their declared error schemas.
options
round-trip test configuration
returns
void