Skip to main content

ComponentTestHarness

@prismatic-io/spectral"testing"ComponentTestHarness

Type parameters#

TComponent: Component

Hierarchy#

  • ComponentTestHarness

Index#

Constructors#

Properties#

Methods#

Constructors#

constructor#

+ new ComponentTestHarness(component: TComponent): ComponentTestHarness

Defined in packages/spectral/src/testing.ts:209

Parameters:

NameType
componentTComponent

Returns: ComponentTestHarness

Properties#

component#

component: TComponent

Defined in packages/spectral/src/testing.ts:209

Methods#

action#

action(key: string, params?: Record‹string, unknown›, context?: Partial‹ActionContext›): Promise‹ActionPerformReturn

Defined in packages/spectral/src/testing.ts:267

Parameters:

NameType
keystring
params?Record‹string, unknown›
context?Partial‹ActionContext

Returns: Promise‹ActionPerformReturn


connectionValue#

connectionValue(__namedParameters: object): ConnectionValue

Defined in packages/spectral/src/testing.ts:215

Parameters:

__namedParameters: object

NameType
keystring

Returns: ConnectionValue


trigger#

trigger(key: string, payload?: TriggerPayload, params?: Record‹string, unknown›, context?: Partial‹ActionContext›): Promise‹TriggerResult

Defined in packages/spectral/src/testing.ts:227

Parameters:

NameType
keystring
payload?TriggerPayload
params?Record‹string, unknown›
context?Partial‹ActionContext

Returns: Promise‹TriggerResult