From 0d5cc8f9b87bbeb796d030f31e3f4aab52fc06f3 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Fri, 24 May 2024 17:07:25 -0700 Subject: [PATCH] test: minor cleanup to pino ESM test The ESM tests are out of process so the setup done in setupInstrumentationAndInitTestContext() isn't relevant. --- .../test/pino-enabled.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-pino/test/pino-enabled.test.ts b/plugins/node/opentelemetry-instrumentation-pino/test/pino-enabled.test.ts index 63d42c462e..6262c1fdfe 100644 --- a/plugins/node/opentelemetry-instrumentation-pino/test/pino-enabled.test.ts +++ b/plugins/node/opentelemetry-instrumentation-pino/test/pino-enabled.test.ts @@ -239,10 +239,8 @@ describe('PinoInstrumentation', () => { }); }); }); + describe('ESM usage', () => { - beforeEach(() => { - testContext = setupInstrumentationAndInitTestContext(); - }); it('should work with ESM default import', async function () { testContext = setupInstrumentationAndInitTestContext(); let logRecords: any[];