Skip to content

Commit

Permalink
revert: cucumber testing
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir committed Apr 24, 2024
1 parent 7016182 commit 1ac2cd8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/node/instrumentation-cucumber/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}`
);
Expand Down Expand Up @@ -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}`
Expand Down

0 comments on commit 1ac2cd8

Please sign in to comment.