Astrada TypeScript SDK
    Preparing search index...

    Interface MockFetchOptions

    interface MockFetchOptions {
        basePath?: string;
        overrides?: Record<string, MockHandler>;
    }
    Index
    basePath?: string

    The configuration's basePath when it has a path, such as http://localhost:4010/astrada: that path is stripped before matching.

    overrides?: Record<string, MockHandler>

    Answers by SDK method name, in place of the example: { getSubaccount: { status: 404, body: {...} } }. An answer without status gets the operation's own success status (200, 201 or 202).