Skip to main content

terafoundation / test-context / TestContext

Class: TestContext<S, A, D>

CoreContext

Extends

Type parameters

Type parameterValue
S extends Record<string, any>-
A extends Record<string, any>-
D extends stringstring

Constructors

new TestContext()

new TestContext<S, A, D>(config, cluster, sysconfig): TestContext<S, A, D>

Parameters

ParameterType
configConfig<S, A & TestContextAPIs, D>
clusterany
sysconfigSysConfig<S>

Returns

TestContext<S, A, D>

Overrides

CoreContext.constructor

Source

test-context.ts:101

Properties

apis

readonly apis: ContextAPIs & A & TestContextAPIs

Inherited from

CoreContext.apis

Source

core-context.ts:15


arch

readonly arch: Architecture = process.arch

Inherited from

CoreContext.arch

Source

core-context.ts:18


assignment

assignment: D

Inherited from

CoreContext.assignment

Source

core-context.ts:20


cluster

readonly cluster: Cluster

Inherited from

CoreContext.cluster

Source

core-context.ts:13


cluster_name?

optional cluster_name: string

Inherited from

CoreContext.cluster_name

Source

core-context.ts:21


logger

readonly logger: Logger

Inherited from

CoreContext.logger

Source

core-context.ts:16


name

readonly name: string

Inherited from

CoreContext.name

Source

core-context.ts:17


platform

readonly platform: Platform = process.platform

Inherited from

CoreContext.platform

Source

core-context.ts:19


sysconfig

readonly sysconfig: SysConfig<S>

Inherited from

CoreContext.sysconfig

Source

core-context.ts:14

Methods

createContext()

static createContext<S, A, D>(options): Promise<TestContext<S, A, D>>

Type parameters

Type parameterValue
S extends Record<string, any>-
A extends Record<string, any>-
D extends stringstring

Parameters

ParameterType
optionsTestContextOptions<S>

Returns

Promise<TestContext<S, A, D>>

Source

test-context.ts:184