@terascope/job-components / test-helpers / TestContext
Class: TestContext
Defined in: packages/job-components/src/test-helpers.ts:119
Implements
Constructors
new TestContext()
new TestContext(
testName
,options
):TestContext
Defined in: packages/job-components/src/test-helpers.ts:130
Parameters
Parameter | Type |
---|---|
testName | string |
options | TestContextOptions |
Returns
Properties
Property | Type | Default value | Defined in |
---|---|---|---|
apis | TestContextApis & ContextAPIs | undefined | packages/job-components/src/test-helpers.ts:123 |
arch | string | process.arch | packages/job-components/src/test-helpers.ts:127 |
assignment | Assignment | 'worker' | packages/job-components/src/test-helpers.ts:125 |
cluster | Cluster | undefined | packages/job-components/src/test-helpers.ts:122 |
logger | Logger | undefined | packages/job-components/src/test-helpers.ts:120 |
mockPromMetrics | null | MockPromMetrics | undefined | packages/job-components/src/test-helpers.ts:128 |
name | string | undefined | packages/job-components/src/test-helpers.ts:124 |
platform | string | process.platform | packages/job-components/src/test-helpers.ts:126 |
sysconfig | SysConfig | undefined | packages/job-components/src/test-helpers.ts:121 |