Documentation
    Preparing search index...

    Interface MockSystemState

    In-memory state of the system mock.

    const state = createMockSystemService().mock.state();
    state.relays.length === 4;
    interface MockSystemState {
        errors: Partial<Record<SystemAccessor, string>>;
        eventCache: SystemStorageStatus;
        media: SystemMediaStatus;
        naps: SystemNapStatus[];
        relays: SystemRelayStatus[];
        services: SystemServiceStatus[];
        startedAt: number;
        storageByWindow: Map<string, SystemStorageStatus>;
        version: string;
    }
    Index

    Properties

    errors: Partial<Record<SystemAccessor, string>>

    Accessors forced to fail, with their error string.

    startedAt: number

    Clock reading when the mock was created or reset; uptime counts from here.

    storageByWindow: Map<string, SystemStorageStatus>

    Per-window storage snapshots, created on first access.

    version: string

    Runtime version string reported in the runtime scope.