Skip to content

Latest commit

 

History

History
71 lines (40 loc) · 1.57 KB

File metadata and controls

71 lines (40 loc) · 1.57 KB

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

DurableTestRunner interface

Main interface for durable function test runners. Provides methods to run durable executions and retrieve operations for testing.

Signature:

export interface DurableTestRunner<TDurableOperation extends DurableOperation, ResultType>

Methods

Method

Description

getOperation(name)

Gets the first operation with the specified name.

getOperationById(id)

Gets an operation by its unique identifier.

getOperationByIndex(index)

Gets an operation by its execution order index.

getOperationByNameAndIndex(name, index)

Gets an operation by name and index when multiple operations have the same name.

run(params)

Runs the durable execution and returns the test result.