Documentation
    Preparing search index...

    Interface MockIntentOptions

    Options for createMockIntentService.

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

    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.

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

    Initial window → catalog identifier bindings.