For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/zh/api/interfaces/test.RenderEventAssertions.md.
  • 简体中文
  • Interface: RenderEventAssertions

    Properties

    toBeBoundedBy

    readonly toBeBoundedBy: (maxEvents) => RenderEventAssertions

    Asserts a total event count ceiling — the #120 bound that keeps tolerance honest.

    Parameters

    maxEvents

    number

    Returns

    RenderEventAssertions


    toCompleteOnce

    readonly toCompleteOnce: () => RenderEventAssertions

    Asserts exactly one terminal complete, and that it is last.

    Returns

    RenderEventAssertions


    toContainSequence

    readonly toContainSequence: (expected) => RenderEventAssertions

    Asserts the expected types appear in order, tolerating extra events between them.

    Parameters

    expected

    readonly ("error" | "shell" | "replace" | "progress" | "complete")[]

    Returns

    RenderEventAssertions


    toHaveErrorCode

    readonly toHaveErrorCode: (code?) => RenderEventAssertions

    Asserts an error event, optionally with code.

    Parameters

    code?

    string

    Returns

    RenderEventAssertions


    toHaveMonotonicSequence

    readonly toHaveMonotonicSequence: () => RenderEventAssertions

    Asserts strictly increasing sequence numbers with no repeats or regressions.

    Returns

    RenderEventAssertions


    toHaveNoErrors

    readonly toHaveNoErrors: () => RenderEventAssertions

    Asserts no error event was emitted.

    Returns

    RenderEventAssertions


    toHaveProgress

    readonly toHaveProgress: (expectation?) => RenderEventAssertions

    Asserts progress reporting: a count window and/or ordered message substrings.

    Parameters

    expectation?

    ProgressExpectation

    Returns

    RenderEventAssertions


    toHaveTypes

    readonly toHaveTypes: (expected) => RenderEventAssertions

    Asserts the exact event-type array. Prefer toContainSequence unless the exact frame set is the contract.

    Parameters

    expected

    readonly ("error" | "shell" | "replace" | "progress" | "complete")[]

    Returns

    RenderEventAssertions