gluonscan-testing
Contract-based mock transports. A contract is a recorded pair: a [Match] (a filter over
the outgoing request) and the response to reply with. You save the contracts (in code or as
JSON files), declare the filters, and get deterministic, offline, testable results — the same
model for HTTP/GraphQL ([MockHttp]), on-chain RPC ([MockChainProvider]), and, later, gRPC.
A request that matches no contract is an error, so tests fail loudly on unexpected calls.
use ;
let http = new
.on;