From c993c34d99834ead1a600f7b4992e63b39d373e5 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Tue, 15 Oct 2024 09:47:08 -0700 Subject: [PATCH] use the same triple-slash-ref to solve a similar testing issue with host-metrics package; use eslint disable comment to avoid complaint about using those triple-slash-refs --- packages/opentelemetry-host-metrics/test/metric.test.ts | 3 +++ .../opentelemetry-instrumentation-router/test/index.test.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/opentelemetry-host-metrics/test/metric.test.ts b/packages/opentelemetry-host-metrics/test/metric.test.ts index f3844e57e9..c61576aaab 100644 --- a/packages/opentelemetry-host-metrics/test/metric.test.ts +++ b/packages/opentelemetry-host-metrics/test/metric.test.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +/* eslint-disable-next-line @typescript-eslint/triple-slash-reference */ +/// + import * as Network from 'systeminformation/lib/network'; import type { Systeminformation } from 'systeminformation'; import { Attributes } from '@opentelemetry/api'; diff --git a/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts b/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts index 8da4567899..31d6f8ee0b 100644 --- a/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts +++ b/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +/* eslint-disable-next-line @typescript-eslint/triple-slash-reference */ /// import { context, trace } from '@opentelemetry/api';