Skip to main content

Namespace: testing

Classes

Interfaces

Type aliases

TestServerSpawner

Ƭ TestServerSpawner: (port: number) => ChildProcess

Type declaration

▸ (port): ChildProcess

A generic callback that returns a child process

Parameters
NameType
portnumber
Returns

ChildProcess


WorkflowStartOptions

Ƭ WorkflowStartOptions<T>: BaseWorkflowStartOptions<T> & { runInNormalTime?: boolean }

Options passed to WorkflowClient.execute, these are the same as the {@link BaseWorkflowStartOptions} with an additional option that controls whether to toggle time skipping in the Test server while waiting on a Workflow's result.

Type parameters

NameType
Textends Workflow

Variables

DEFAULT_TEST_SERVER_PATH

Const DEFAULT_TEST_SERVER_PATH: string


defaultActivityInfo

Const defaultActivityInfo: activity.Info

Used as the default activity info for Activities executed in the MockActivityEnvironment


workflowInterceptorModules

Const workflowInterceptorModules: string[]

Convenience workflow interceptors

Contains a single interceptor for transforming AssertionErrors into non retryable ApplicationFailures.