From 3efd50f31e8ffcf0bc812bdc4a57f66f6a822fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaras=C5=82a=C5=AD=20Viktor=C4=8Dyk?= Date: Wed, 22 Jan 2025 13:33:37 +0100 Subject: [PATCH] feat(cucumber): support @cucumber/cucumber@11 --- plugins/node/instrumentation-cucumber/.tav.yml | 5 +++++ plugins/node/instrumentation-cucumber/src/instrumentation.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/node/instrumentation-cucumber/.tav.yml b/plugins/node/instrumentation-cucumber/.tav.yml index 0a9cf7031d..e00a9aeeb5 100644 --- a/plugins/node/instrumentation-cucumber/.tav.yml +++ b/plugins/node/instrumentation-cucumber/.tav.yml @@ -9,3 +9,8 @@ mode: latest-minors node: '>=18' commands: npm test + - versions: + include: '^11.0.0' + mode: latest-minors + node: '>=18' + commands: npm test diff --git a/plugins/node/instrumentation-cucumber/src/instrumentation.ts b/plugins/node/instrumentation-cucumber/src/instrumentation.ts index 62341ad990..1c8e73de19 100644 --- a/plugins/node/instrumentation-cucumber/src/instrumentation.ts +++ b/plugins/node/instrumentation-cucumber/src/instrumentation.ts @@ -47,7 +47,7 @@ type Cucumber = typeof cucumber; type Hook = (typeof hooks)[number]; type Step = (typeof steps)[number]; -const supportedVersions = ['>=8.0.0 <11']; +const supportedVersions = ['>=8.0.0 <12']; export class CucumberInstrumentation extends InstrumentationBase { private module: Cucumber | undefined;