Stone.js API
    Preparing search index...

    A booted, in-memory Stone.js app you can send synthetic events to.

    send dispatches an event through the real kernel (middleware, handler, response, error handling) — exactly what production runs, minus the network. Each call gets a fresh ephemeral container, mirroring the per-request isolation of Stone.js.

    Index
    • Parameters

      • dispatch: (event: IncomingEvent) => Promise<OutgoingResponse>

        The bound dispatch function from the test adapter.

      Returns TestClient

    • Dispatch an event and resolve with the outgoing response.

      Type Parameters

      • ResponseType extends OutgoingResponse = OutgoingResponse

      Parameters

      • event: IncomingEvent

        The incoming event (build one with the factories).

      Returns Promise<TestResponse<ResponseType>>

      The outgoing response, with json() for reading the body as data.