Skip to content

Commit 850270f

Browse files
Update dependency @cucumber/compatibility-kit to v24 (#134)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David Goss <[email protected]>
1 parent 74995b1 commit 850270f

File tree

6 files changed

+41
-19
lines changed

6 files changed

+41
-19
lines changed

package-lock.json

Lines changed: 5 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"type-fest": "^5.0.0"
4444
},
4545
"devDependencies": {
46-
"@cucumber/compatibility-kit": "^22.0.0",
46+
"@cucumber/compatibility-kit": "^24.0.0",
4747
"@eslint/compat": "^1.2.5",
4848
"@eslint/eslintrc": "^3.2.0",
4949
"@eslint/js": "^9.18.0",

test/cck/ambiguous/support.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Given } from '@cucumber/node'
22

3-
Given(/a (.*?) with (.*?)/, function () {
3+
Given(/^a (.*?) with (.*?)$/, function () {
44
// first one
55
})
66

7-
Given(/a step with (.*)/, function () {
7+
Given(/^a step with (.*)$/, function () {
88
// second one
99
})

test/cck/cck.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ const UNSUPPORTED = [
4949
'multiple-features-reversed',
5050
// node:test doesnt support retries yet
5151
'retry',
52+
'retry-ambiguous',
53+
'retry-pending',
54+
'retry-undefined',
55+
// not a test sample
56+
'test-run-exception',
57+
// suggestions not implemented yet
58+
'examples-tables-undefined',
59+
'hooks-undefined',
60+
'undefined',
61+
'unknown-parameter-type',
5262
]
5363

5464
describe('Cucumber Compatibility Kit', () => {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Given, When, Then } from '@cucumber/node'
2+
import assert from 'node:assert'
3+
4+
Given('there are {int} cucumbers', (t, initialCount) => {
5+
t.world.count = initialCount
6+
})
7+
8+
When('I eat {int} cucumbers', (t, eatCount) => {
9+
t.world.count -= eatCount
10+
})
11+
12+
Then('I should have {int} cucumbers', (t, expectedCount) => {
13+
assert.strictEqual(t.world.count, expectedCount)
14+
})
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Before, After } from '@cucumber/node'
2+
3+
Before({}, () => {
4+
// no-op
5+
})
6+
7+
After({}, () => {
8+
// no-op
9+
})

0 commit comments

Comments
 (0)