From 1ac2cd807858d08ad4577208a82fab9c811bba27 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Wed, 24 Apr 2024 20:56:46 +0300 Subject: [PATCH] revert: cucumber testing --- plugins/node/instrumentation-cucumber/src/instrumentation.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/node/instrumentation-cucumber/src/instrumentation.ts b/plugins/node/instrumentation-cucumber/src/instrumentation.ts index 5a9db31c54..4633707e33 100644 --- a/plugins/node/instrumentation-cucumber/src/instrumentation.ts +++ b/plugins/node/instrumentation-cucumber/src/instrumentation.ts @@ -34,7 +34,6 @@ import type { import { AttributeNames, CucumberInstrumentationConfig } from './types'; import { VERSION } from './version'; -import { TestCaseRunnerModuleExportType } from './internal-types'; const hooks = ['Before', 'BeforeStep', 'AfterStep', 'After'] as const; const steps = ['Given', 'When', 'Then'] as const; @@ -86,7 +85,7 @@ export class CucumberInstrumentation extends InstrumentationBase { new InstrumentationNodeModuleFile( '@cucumber/cucumber/lib/runtime/test_case_runner.js', ['^8.0.0', '^9.0.0', '^10.0.0'], - (moduleExports: TestCaseRunnerModuleExportType, moduleVersion) => { + (moduleExports, moduleVersion) => { this._diag.debug( `Applying patch for @cucumber/cucumber/lib/runtime/test_case_runner.js@${moduleVersion}` ); @@ -116,7 +115,7 @@ export class CucumberInstrumentation extends InstrumentationBase { } return moduleExports; }, - (moduleExports: TestCaseRunnerModuleExportType, moduleVersion) => { + (moduleExports, moduleVersion) => { if (moduleExports === undefined) return; this._diag.debug( `Removing patch for @cucumber/cucumber/lib/runtime/test_case_runner.js@${moduleVersion}`