@terascope/job-components / test-helpers
test-helpers
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
Defined in: packages/job-components/src/test-helpers.ts:51
Parameters
| Parameter | Type |
|---|---|
jobConfig | Partial<JobConfigParams> |
Returns
newTestJobConfig()
newTestJobConfig(
defaults):ValidatedJobConfig
Defined in: packages/job-components/src/test-helpers.ts:28
Parameters
| Parameter | Type |
|---|---|
defaults | Partial<JobConfigParams> |
Returns
newTestSlice()
newTestSlice(
request):Slice
Defined in: packages/job-components/src/test-helpers.ts:18
Parameters
| Parameter | Type |
|---|---|
request | SliceRequest |