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