testing/rpc_helpers.ts view source
(body: unknown, expected_code?: -32700 | -32600 | -32601 | -32602 | -32603 | (number & $brand<"JsonrpcServerErrorCode">) | undefined): void Assert that a response body is a valid JSON-RPC error response.
Validates the structure matches JsonrpcErrorResponse and optionally checks the error code.
body
unknownexpected_code?
optional error code to assert
-32700 | -32600 | -32601 | -32602 | -32603 | (number & $brand<"JsonrpcServerErrorCode">) | undefinedreturns
void