Skip to content

PURISTA API


PURISTA API / @purista/core / CreateStreamContextMockInput

Type Alias: CreateStreamContextMockInput<TBuilder>

CreateStreamContextMockInput<TBuilder> = object

Defined in: testing/createStreamContextMock.ts:35

Type Parameters

TBuilder

TBuilder extends StreamDefinitionBuilder<any, any>

Properties

message?

optional message?: Partial<StreamOpenRequest<Infer<StreamContextMockBuilderTypes<TBuilder>["PayloadSchema"]>, Infer<StreamContextMockBuilderTypes<TBuilder>["ParamsSchema"]>>>

Defined in: testing/createStreamContextMock.ts:40


parameter

parameter: InferIn<StreamContextMockBuilderTypes<TBuilder>["ParamsSchema"]>

Defined in: testing/createStreamContextMock.ts:37


payload

payload: InferIn<StreamContextMockBuilderTypes<TBuilder>["PayloadSchema"]>

Defined in: testing/createStreamContextMock.ts:36


resources?

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

Defined in: testing/createStreamContextMock.ts:39


sandbox?

optional sandbox?: SinonSandbox

Defined in: testing/createStreamContextMock.ts:38