diff --git a/core/src/Tabster.ts b/core/src/Tabster.ts index 103f0d79..41af0e95 100644 --- a/core/src/Tabster.ts +++ b/core/src/Tabster.ts @@ -94,7 +94,6 @@ class Tabster implements Types.TabsterCore, Types.TabsterInternal { }; this.uncontrolled = new UncontrolledAPI(this); this.controlTab = props?.controlTab ?? true; - console.log('controlledTab', this.controlTab); this.internal = { stopObserver: (): void => { diff --git a/core/src/Utils.ts b/core/src/Utils.ts index bc4f5573..44ff574c 100644 --- a/core/src/Utils.ts +++ b/core/src/Utils.ts @@ -659,7 +659,9 @@ export class DummyInputManager { // older versions of testing frameworks like JSDOM don't support MutationObserver // https://github.com/jsdom/jsdom/issues/639 - if (process.env.NODE_ENV !== 'test') { + // use this way of getting NODE_ENV because tsdx does not support a test environment + // https://github.com/jaredpalmer/tsdx/issues/167 + if (typeof process === 'undefined' || process.env["NODE_ENV"] !== "test") { this._observeMutations(win); } }