Documentation
    Preparing search index...

    Interface MockConfigOptions

    Options for createMockConfigService.

    const options: MockConfigOptions = { values: { theme: 'light' } };
    
    interface MockConfigOptions {
        clock?: MockClock;
        latencyMs?: number;
        scheduler?: MockScheduler;
        seed?: number;
        values?: ConfigValues;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clock?: MockClock

    Clock used for timestamps. Default: Date.now.

    latencyMs?: number

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

    scheduler?: MockScheduler

    Scheduler used for deferred pushes. Default: setTimeout.

    seed?: number

    Seed for deterministic ids and fixture ordering. Default 1.

    values?: ConfigValues

    Persisted values every window starts with. Default MOCK_CONFIG_VALUES.