diff --git a/experimental/packages/sdk-logs/test/browser/export/BatchLogRecordProcessor.test.ts b/experimental/packages/sdk-logs/test/browser/export/BatchLogRecordProcessor.test.ts index 09ccbfc30cc..7bef5aeb254 100644 --- a/experimental/packages/sdk-logs/test/browser/export/BatchLogRecordProcessor.test.ts +++ b/experimental/packages/sdk-logs/test/browser/export/BatchLogRecordProcessor.test.ts @@ -30,6 +30,7 @@ const describeDocument = type WebVisibilityState = 'visible' | 'hidden'; describeDocument('BatchLogRecordProcessor - web main context', () => { + // TODO: change to DocumentVisibilityState when TypeScript is upgraded to 4.6+ let visibilityState: WebVisibilityState = 'visible'; let exporter: LogRecordExporter; let processor: BatchLogRecordProcessor; diff --git a/packages/opentelemetry-sdk-trace-base/test/browser/export/BatchSpanProcessor.test.ts b/packages/opentelemetry-sdk-trace-base/test/browser/export/BatchSpanProcessor.test.ts index f510d518ff2..901dd74ebfe 100644 --- a/packages/opentelemetry-sdk-trace-base/test/browser/export/BatchSpanProcessor.test.ts +++ b/packages/opentelemetry-sdk-trace-base/test/browser/export/BatchSpanProcessor.test.ts @@ -30,6 +30,7 @@ const describeDocument = typeof document === 'object' ? describe : describe.skip; describeDocument('BatchSpanProcessor - web main context', () => { + // TODO: change to DocumentVisibilityState when TypeScript is upgraded to 4.6+ let visibilityState: WebVisibilityState = 'visible'; let exporter: SpanExporter; let processor: BatchSpanProcessor;