ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Module helpers/responseAggregate

    Functions

    addCapturedResponse

    Capture a request/response pair and store it keyed by {hostname}/{hash}.json. Uses the same serialization as the MSW mock handler expects: { contentType, content }.

    downloadAsZip

    Download all captured responses as a zip file. The zip structure mirrors src/__mocks__/responses/{hostname}/{hash}.json.

    list

    List all captured response paths in the console.

    clear

    Clear all captured responses.

    count

    Get the number of captured responses.

    initConsoleApi

    Expose console API on window.__responseAggregate when in aggregate mode.