Skip to main content

@terascope/job-components / test-helpers

test-helpers

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

Defined in: job-components/src/test-helpers.ts:51

Parameters​

ParameterType
jobConfigPartial<JobConfigParams>

Returns​

ExecutionConfig


newTestJobConfig()​

newTestJobConfig(defaults?): ValidatedJobConfig

Defined in: job-components/src/test-helpers.ts:28

Parameters​

ParameterType
defaultsPartial<JobConfigParams>

Returns​

ValidatedJobConfig


newTestSlice()​

newTestSlice(request?): Slice

Defined in: job-components/src/test-helpers.ts:18

Parameters​

ParameterType
requestSliceRequest

Returns​

Slice