Documentation
    Preparing search index...

    Interface MockCatalogOptions

    Options for createMockCatalogService.

    const options: MockCatalogOptions = { defaults: { feed: 'catalog-note-viewer' } };
    
    interface MockCatalogOptions {
        clock?: MockClock;
        defaults?: Readonly<Record<string, string>>;
        latencyMs?: number;
        napplets?: readonly MockNapplet[];
        scheduler?: MockScheduler;
        seed?: number;
        unavailable?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clock?: MockClock

    Clock used for timestamps. Default: Date.now.

    defaults?: Readonly<Record<string, string>>

    Initial user defaults per archetype.

    latencyMs?: number

    Artificial latency (ms) applied before each result. Default 0, which responds synchronously inside handleMessage.

    napplets?: readonly MockNapplet[]

    Installed catalog. Default MOCK_NAPPLETS.

    scheduler?: MockScheduler

    Scheduler used for deferred pushes. Default: setTimeout.

    seed?: number

    Seed for deterministic ids and fixture ordering. Default 1.

    unavailable?: boolean

    Answer every request with error: 'catalog unavailable'.