testing/rpc_round_trip.ts view source
(options: RpcRoundTripTestOptions): void Run schema-driven round-trip validation for RPC endpoints.
For each method:
1. Generate valid params from the action's input schema
2. Fire a POST request with JSON-RPC envelope
3. For side_effects: false methods, also fire a GET request
4. Validate response is well-formed JSON-RPC; successful responses are
also validated against the method's declared output schema
Error responses (from missing DB state, etc.) are expected and validated
as well-formed JSON-RPC errors. Successful responses are validated against
action.spec.output.
options
returns
void