Interface MockIPFSOptions

Hierarchy

  • MockIPFSOptions

Properties

Properties

unmatchedRequests?: "stub" | {
    proxyTo: string;
}

Specify the behaviour of unmatched requests.

By default this is set to stub, in which case default responses will be returned, emulating a constantly available but empty IPFS node: all queries will return no data, and all submitted data will be accepted (but ignored).

Alternatively, this can be set to an object including a proxyTo property, defining the URL of a remote IPFS node to which unmatched requests should be forwarded. In this case all default behaviours will be disabled, and all unmatched requests will receive real responses from that upstream IPFS node.

Generated using TypeDoc