From 0c48abb262a8c3afa0b33f63def2ef66433b91e5 Mon Sep 17 00:00:00 2001 From: David Luna Date: Mon, 9 Sep 2024 15:56:46 +0200 Subject: [PATCH] chore(detector-gcp): fix lint issues --- .../test/detectors/GcpDetectorIntegration.test.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/detectors/node/opentelemetry-resource-detector-gcp/test/detectors/GcpDetectorIntegration.test.ts b/detectors/node/opentelemetry-resource-detector-gcp/test/detectors/GcpDetectorIntegration.test.ts index e38ffe33ac..77bf0334d7 100644 --- a/detectors/node/opentelemetry-resource-detector-gcp/test/detectors/GcpDetectorIntegration.test.ts +++ b/detectors/node/opentelemetry-resource-detector-gcp/test/detectors/GcpDetectorIntegration.test.ts @@ -18,12 +18,17 @@ // so SDK cannot instrument them. We make sure we load fresh copies so RITM hook does its work. // we remove all the require chain: detector -> gcp-metadata -> gaxios -> node-fetch // but kepp other cache entries to not slow down the test more than necessary -const modules = ['opentelemetry-resource-detector-gcp', 'gcp-metadata', 'gaxios', 'node-fetch'] +const modules = [ + 'opentelemetry-resource-detector-gcp', + 'gcp-metadata', + 'gaxios', + 'node-fetch', +]; Object.keys(require.cache) -.filter((path) => modules.some((m) => path.includes(m))) -.forEach((key) => { - delete require.cache[key]; -}); + .filter(path => modules.some(m => path.includes(m))) + .forEach(key => { + delete require.cache[key]; + }); import * as assert from 'assert';