Skip to content

Commit

Permalink
feat(cucumber): support @cucumber/cucumber@10 (#1830)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
  • Loading branch information
Ugzuzg and dyladan authored Dec 1, 2023
1 parent 4ca1862 commit 1c2e8b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions plugins/node/instrumentation-cucumber/.tav.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'@cucumber/cucumber':
versions: '^8.0.0 || ^9.0.0'
commands: npm test
- versions: '^8.0.0 || ^9.0.0'
node: '>=14'
commands: npm test
- versions: '^10.0.0'
node: '>=18'
commands: npm test
4 changes: 2 additions & 2 deletions plugins/node/instrumentation-cucumber/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class CucumberInstrumentation extends InstrumentationBase {
return [
new InstrumentationNodeModuleDefinition<Cucumber>(
'@cucumber/cucumber',
['^8.0.0', '^9.0.0'],
['^8.0.0', '^9.0.0', '^10.0.0'],
(moduleExports, moduleVersion) => {
this._diag.debug(
`Applying patch for @cucumber/cucumber@${moduleVersion}`
Expand Down Expand Up @@ -86,7 +86,7 @@ export class CucumberInstrumentation extends InstrumentationBase {
default: { new (): TestCaseRunner; prototype: TestCaseRunner };
}>(
'@cucumber/cucumber/lib/runtime/test_case_runner.js',
['^8.0.0', '^9.0.0'],
['^8.0.0', '^9.0.0', '^10.0.0'],
(moduleExports, moduleVersion) => {
this._diag.debug(
`Applying patch for @cucumber/cucumber/lib/runtime/test_case_runner.js@${moduleVersion}`
Expand Down

0 comments on commit 1c2e8b2

Please sign in to comment.