@terascope/job-components / test-helpers
test-helpers
Index
Classes
Class | Description |
---|---|
TestContext | - |
Interfaces
Interface | Description |
---|---|
CachedClients | - |
MockPromMetrics | - |
TestContextAPIs | Context includes the type definitions for the APIs available to Worker or Slicer. This extends the Terafoundation Context. |
TestContextOptions | - |
Functions
newTestExecutionConfig()
newTestExecutionConfig(
jobConfig
):ExecutionConfig
Parameters
Parameter | Type |
---|---|
jobConfig | Partial <JobConfigParams > |
Returns
Source
packages/job-components/src/test-helpers.ts:51
newTestJobConfig()
newTestJobConfig(
defaults
):ValidatedJobConfig
Parameters
Parameter | Type |
---|---|
defaults | Partial <JobConfigParams > |
Returns
Source
packages/job-components/src/test-helpers.ts:28
newTestSlice()
newTestSlice(
request
):Slice
Parameters
Parameter | Type |
---|---|
request | SliceRequest |