Documentation
    Preparing search index...

    Interface MockNavigationOptions

    Factory options for the navigation mock.

    const navigation = createMockNavigationService({ maxEntries: 10 });
    
    interface MockNavigationOptions {
        clock?: MockClock;
        conventions?: readonly MockNavigationConvention[];
        latencyMs?: number;
        maxEntries?: number;
        maxLocationBytes?: number;
        scheduler?: MockScheduler;
        seed?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clock?: MockClock

    Clock used for timestamps. Default: Date.now.

    conventions?: readonly MockNavigationConvention[]

    Eligible conventions. Default MOCK_NAVIGATION_CONVENTIONS.

    latencyMs?: number

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

    maxEntries?: number

    Retained-visit cap per instance. Default 50.

    maxLocationBytes?: number

    Location size cap (JSON bytes). Default 4096.

    scheduler?: MockScheduler

    Scheduler used for deferred pushes. Default: setTimeout.

    seed?: number

    Seed for deterministic ids and fixture ordering. Default 1.