terafoundation / test-context / TestContext
Class: TestContext<S, A, D>
Defined in: test-context.ts:96
CoreContext
Extends
CoreContext<S,A&TestContextAPIs,D>
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends Record<string, any> | - |
A extends Record<string, any> | - |
D extends string | string |
Constructors
Constructor
new TestContext<
S,A,D>(config,cluster,sysconfig):TestContext<S,A,D>
Defined in: test-context.ts:101
Parameters
| Parameter | Type |
|---|---|
config | Config<S, A & TestContextAPIs, D> |
cluster | any |
sysconfig | SysConfig<S> |
Returns
TestContext<S, A, D>
Overrides
Properties
| Property | Modifier | Type | Default value | Inherited from | Defined in |
|---|---|---|---|---|---|
apis | readonly | ContextAPIs & A & TestContextAPIs | undefined | CoreContext.apis | core-context.ts:15 |
arch | readonly | Architecture | process.arch | CoreContext.arch | core-context.ts:18 |
assignment | public | D | undefined | CoreContext.assignment | core-context.ts:20 |
cluster | readonly | Cluster | undefined | CoreContext.cluster | core-context.ts:13 |
cluster_name? | public | string | undefined | CoreContext.cluster_name | core-context.ts:21 |
logger | readonly | Logger | undefined | CoreContext.logger | core-context.ts:16 |
name | readonly | string | undefined | CoreContext.name | core-context.ts:17 |
platform | readonly | Platform | process.platform | CoreContext.platform | core-context.ts:19 |
sysconfig | readonly | SysConfig<S> | undefined | CoreContext.sysconfig | core-context.ts:14 |
Methods
createContext()
staticcreateContext<S,A,D>(options):Promise<TestContext<S,A,D>>
Defined in: test-context.ts:184
Type Parameters
| Type Parameter | Default type |
|---|---|
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>>