terafoundation / test-context / TestContext
Class: TestContext<S, A, D>
CoreContext
Extends
CoreContext
<S
,A
&TestContextAPIs
,D
>
Type parameters
Type parameter | Value |
---|---|
S extends Record <string , any > | - |
A extends Record <string , any > | - |
D extends string | string |
Constructors
new TestContext()
new TestContext<
S
,A
,D
>(config
,cluster
,sysconfig
):TestContext
<S
,A
,D
>
Parameters
Parameter | Type |
---|---|
config | Config <S , A & TestContextAPIs , D > |
cluster | any |
sysconfig | SysConfig <S > |
Returns
TestContext
<S
, A
, D
>
Overrides
Source
Properties
apis
readonly
apis:ContextAPIs
&A
&TestContextAPIs
Inherited from
Source
arch
readonly
arch:Architecture
=process.arch
Inherited from
Source
assignment
assignment:
D
Inherited from
Source
cluster
readonly
cluster:Cluster
Inherited from
Source
cluster_name?
optional
cluster_name:string
Inherited from
Source
logger
readonly
logger:Logger
Inherited from
Source
name
readonly
name:string
Inherited from
Source
platform
readonly
platform:Platform
=process.platform
Inherited from
Source
sysconfig
readonly
sysconfig:SysConfig
<S
>
Inherited from
Source
Methods
createContext()
static
createContext<S
,A
,D
>(options
):Promise
<TestContext
<S
,A
,D
>>
Type parameters
Type parameter | Value |
---|---|
S extends Record <string , any > | - |
A extends Record <string , any > | - |
D extends string | string |
Parameters
Parameter | Type |
---|---|
options | TestContextOptions <S > |
Returns
Promise
<TestContext
<S
, A
, D
>>