Documentation
    Preparing search index...

    Interface MockResourceState

    In-memory state of the resource mock.

    createMockResourceService().mock.state().inFlight.size === 0;
    
    interface MockResourceState {
        inFlight: Map<
            string,
            { cancel: () => void; id: string; windowId: string },
        >;
        log: {
            error?: ResourceErrorCode;
            ok: boolean;
            url: string;
            windowId: string;
        }[];
    }
    Index

    Properties

    Properties

    inFlight: Map<string, { cancel: () => void; id: string; windowId: string }>

    Deferred deliveries keyed by windowId\0id (only when latencyMs > 0).

    log: { error?: ResourceErrorCode; ok: boolean; url: string; windowId: string }[]

    Every resolved URL in order, with its outcome.