Skip to content

Latest commit

 

History

History
290 lines (161 loc) · 5.46 KB

File metadata and controls

290 lines (161 loc) · 5.46 KB

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

durable-execution-sdk-js-testing package

Classes

Class

Description

CloudDurableTestRunner

A test runner for durable execution functions running in the AWS cloud. This runner invokes Lambda functions and polls for execution history to provide testing capabilities for durable operations.

LocalDurableTestRunner

Local test runner for durable executions that runs handlers in-process with a local checkpoint server for development and testing scenarios.

This test runner executes durable functions locally without requiring AWS Lambda infrastructure, making it ideal for unit testing and local development workflows.

Enumerations

Enumeration

Description

WaitingOperationStatus

An enum for different available waiting operation statuses.

Interfaces

Interface

Description

CallbackDetails

Details for a callback operation result, including the callback identifier and outcome.

ChainedInvokeDetails

Details for a chained invoke operation result.

CloudDurableTestRunnerConfig

Options for the cloud durable test runner.

CloudDurableTestRunnerParameters

Parameters for creating a CloudDurableTestRunner instance.

ContextDetails

Details for a context operation result, containing either a successful result or an error.

DurableOperation

Interface for individual operation level interactions in durable executions. Provides methods to inspect operation details, wait for data, and send callback responses.

DurableTestRunner

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

Invocation

Tracks a single invocation of the durable function handler. Contains timing information, request ID, and any errors that occurred.

InvokeRequest

Request parameters for invoking a durable function.

LocalDurableTestRunnerParameters

Configuration parameters for LocalDurableTestRunner.

LocalDurableTestRunnerSetupParameters

Configuration parameters for setting up the LocalDurableTestRunner test environment.

StepDetails

Details for a step operation result, including retry information and outcome.

TestResult

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

TestResultError

Error information from a test execution or operation.

WaitResultDetails

Details for a wait operation, including duration and scheduling information.

Variables

Variable

Description

ExecutionStatus

InvocationType

OperationStatus

OperationType

Type Aliases

Type Alias

Description

ExecutionStatus

InvocationType

OperationStatus

OperationType