Interface: RenderEventAssertions
Properties
toBeBoundedBy
readonlytoBeBoundedBy: (maxEvents) =>RenderEventAssertions
Asserts a total event count ceiling — the #120 bound that keeps tolerance honest.
Parameters
maxEvents
number
Returns
RenderEventAssertions
toCompleteOnce
readonlytoCompleteOnce: () =>RenderEventAssertions
Asserts exactly one terminal complete, and that it is last.
Returns
RenderEventAssertions
toContainSequence
readonlytoContainSequence: (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
readonlytoHaveErrorCode: (code?) =>RenderEventAssertions
Asserts an error event, optionally with code.
Parameters
code?
string
Returns
RenderEventAssertions
toHaveMonotonicSequence
readonlytoHaveMonotonicSequence: () =>RenderEventAssertions
Asserts strictly increasing sequence numbers with no repeats or regressions.
Returns
RenderEventAssertions
toHaveNoErrors
readonlytoHaveNoErrors: () =>RenderEventAssertions
Asserts no error event was emitted.
Returns
RenderEventAssertions
toHaveProgress
readonlytoHaveProgress: (expectation?) =>RenderEventAssertions
Asserts progress reporting: a count window and/or ordered message substrings.
Parameters
expectation?
Returns
RenderEventAssertions
toHaveTypes
readonlytoHaveTypes: (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