Skip to content

PURISTA API


PURISTA API / @purista/core / CreateCommandContextMockInput

Type Alias: CreateCommandContextMockInput<TBuilder>

CreateCommandContextMockInput<TBuilder> = object

Defined in: testing/createCommandContextMock.ts:34

Type Parameters

TBuilder

TBuilder extends CommandDefinitionBuilder<any, any>

Properties

message?

optional message?: object

Defined in: testing/createCommandContextMock.ts:45

parameter

parameter: GetMessageParamsType<CommandContextMockBuilderTypes<TBuilder>["ParamsSchema"], CommandContextMockBuilderTypes<TBuilder>["TransformInputParamsSchema"]>

payload

payload: GetMessagePayloadType<CommandContextMockBuilderTypes<TBuilder>["PayloadSchema"], CommandContextMockBuilderTypes<TBuilder>["TransformInputPayloadSchema"]>


parameter

parameter: GetMessageParamsType<CommandContextMockBuilderTypes<TBuilder>["ParamsSchema"], CommandContextMockBuilderTypes<TBuilder>["TransformInputParamsSchema"]>

Defined in: testing/createCommandContextMock.ts:39


payload

payload: GetMessagePayloadType<CommandContextMockBuilderTypes<TBuilder>["PayloadSchema"], CommandContextMockBuilderTypes<TBuilder>["TransformInputPayloadSchema"]>

Defined in: testing/createCommandContextMock.ts:35


resources?

optional resources?: Partial<CommandContextMockBuilderTypes<TBuilder>["Resources"]>

Defined in: testing/createCommandContextMock.ts:44


sandbox?

optional sandbox?: SinonSandbox

Defined in: testing/createCommandContextMock.ts:43