webdriverio/packages/wdio-browserstack-service/src/testOps/testOpsConfig.ts
Christian Bromann a2ae35332f
chore: upgrade to Eslint v9 (#13867)
* chore: upgrade to Eslint v9

* fix remaining issues

* more type fixes

* resolve remaining issues

* use wdio eslint package

* PR feedback
2024-12-18 11:55:43 -08:00

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