BellD / DevelopersDocumentation · latest

fake.ts

Source: sdk/typescript/src/fake.ts

import { BellDCapabilityError } from './errors.js';
import type { BellD } from './client.js';
import type { CapabilityOptions } from './generated/capabilities.js';
export type FakeBellDResponses = Partial<Record<keyof CapabilityOptions, {
    response: unknown;
} | {
    error: BellDCapabilityError;
}>>;
/** In-memory Product test double. No endpoint, token, or retry is needed. */
export declare function createFakeBellD(responses?: FakeBellDResponses): BellD;