* chore: upgrade to Eslint v9 * fix remaining issues * more type fixes * resolve remaining issues * use wdio eslint package * PR feedback
22 lines
567 B
TypeScript
22 lines
567 B
TypeScript
class TestOpsConfig {
|
|
private static _instance: TestOpsConfig
|
|
public buildStopped: boolean = false
|
|
public buildHashedId?: string
|
|
|
|
static getInstance(...args: unknown[]) {
|
|
if (!this._instance) {
|
|
// @ts-expect-error passing args to constructor
|
|
this._instance = new TestOpsConfig(...args)
|
|
}
|
|
return this._instance
|
|
}
|
|
|
|
constructor(
|
|
public enabled: boolean = true,
|
|
public manuallySet: boolean = false,
|
|
){
|
|
TestOpsConfig._instance = this
|
|
}
|
|
}
|
|
|
|
export default TestOpsConfig
|