Skip to content

Latest commit

 

History

History
91 lines (51 loc) · 1.88 KB

File metadata and controls

91 lines (51 loc) · 1.88 KB

Home > @aws/durable-execution-sdk-js-testing > TestResult

TestResult interface

Result of a durable function test execution. Contains the function result, operation history, and methods to inspect the execution.

Signature:

export interface TestResult<TResult = any>

Methods

Method

Description

getError()

Gets the error from a failed durable execution.

getHistoryEvents()

Gets the complete history of events for the durable execution.

getInvocations()

Gets informatiAn about individual Lambda handler invocations.

Can be used to assert on the data for a specific invocation and validate the number of invocations that were run during the durable execution.

getOperations(params)

Gets a list of all operations from the execution.

getResult()

Gets the final result of the durable execution.

getStatus()

Gets the status of the durable execution.

print(config)

Prints a formatted table of all operations to the console with their details.