Skip to main content

@terascope/job-components / test-helpers

test-helpers

Index

Classes

ClassDescription
TestContext-

Interfaces

InterfaceDescription
CachedClients-
MockPromMetrics-
TestContextAPIsContext includes the type definitions for the APIs available to Worker or Slicer. This extends the Terafoundation Context.
TestContextOptions-

Functions

newTestExecutionConfig()

newTestExecutionConfig(jobConfig): ExecutionConfig

Parameters

ParameterType
jobConfigPartial<JobConfigParams>

Returns

ExecutionConfig

Source

packages/job-components/src/test-helpers.ts:51


newTestJobConfig()

newTestJobConfig(defaults): ValidatedJobConfig

Parameters

ParameterType
defaultsPartial<JobConfigParams>

Returns

ValidatedJobConfig

Source

packages/job-components/src/test-helpers.ts:28


newTestSlice()

newTestSlice(request): Slice

Parameters

ParameterType
requestSliceRequest

Returns

Slice

Source

packages/job-components/src/test-helpers.ts:18