Documentation
    Preparing search index...

    Interface MockSystemOptions

    Factory options for the system mock.

    const service = createMockSystemService({ version: '1.2.3', errors: { media: 'unavailable' } });
    
    interface MockSystemOptions {
        clock?: MockClock;
        errors?: Partial<Record<SystemAccessor, string>>;
        eventCache?: SystemStorageStatus;
        latencyMs?: number;
        media?: SystemMediaStatus;
        naps?: SystemNapStatus[];
        relays?: SystemRelayStatus[];
        scheduler?: MockScheduler;
        seed?: number;
        services?: SystemServiceStatus[];
        version?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clock?: MockClock

    Clock used for timestamps. Default: Date.now.

    errors?: Partial<Record<SystemAccessor, string>>

    Force these accessors to answer with error and a conservative fallback.

    eventCache?: SystemStorageStatus

    Override the event-cache snapshot.

    latencyMs?: number

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

    Override the media snapshot.

    Override the NAP support table.

    Override the relay table.

    scheduler?: MockScheduler

    Scheduler used for deferred pushes. Default: setTimeout.

    seed?: number

    Seed for deterministic ids and fixture ordering. Default 1.

    services?: SystemServiceStatus[]

    Override the service table.

    version?: string

    Runtime version reported in the runtime scope. Default 0.1.0-mock.