Skip to main content

@terascope/job-components / test-helpers / TestContext

Class: TestContext

Implements

Constructors

new TestContext()

new TestContext(testName, options): TestContext

Parameters

ParameterType
testNamestring
optionsTestContextOptions

Returns

TestContext

Source

packages/job-components/src/test-helpers.ts:130

Properties

apis

apis: TestContextApis & ContextAPIs

Implementation of

Context.apis

Source

packages/job-components/src/test-helpers.ts:123


arch

arch: string = process.arch

Implementation of

Context.arch

Source

packages/job-components/src/test-helpers.ts:127


assignment

assignment: Assignment = 'worker'

Implementation of

Context.assignment

Source

packages/job-components/src/test-helpers.ts:125


cluster

cluster: Cluster

Implementation of

Context.cluster

Source

packages/job-components/src/test-helpers.ts:122


logger

logger: Logger

Implementation of

Context.logger

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

Context.name

Source

packages/job-components/src/test-helpers.ts:124


platform

platform: string = process.platform

Implementation of

Context.platform

Source

packages/job-components/src/test-helpers.ts:126


sysconfig

sysconfig: SysConfig

Implementation of

Context.sysconfig

Source

packages/job-components/src/test-helpers.ts:121