1
0

Switch to ESM

This commit is contained in:
2024-12-20 15:03:16 +01:00
parent 53e4c5dba6
commit 738f4f2bdb
22 changed files with 10709 additions and 5148 deletions

View File

@ -1,5 +1,5 @@
const { Before, Given, When, Then, defineParameterType } = require('cucumber')
const { expect } = require('chai')
import { Before, Given, When, Then, defineParameterType } from '@cucumber/cucumber'
import { expect } from 'chai'
defineParameterType({
name: 'tobe',
@ -39,7 +39,7 @@ Before(function () {
this.count = 0
})
Given(/(a regular expression|it) matches (this|that) pattern/, function (_, _) {
Given(/(a regular expression|it) matches (this|that) pattern/, function (_x, _y) {
++this.count
})

File diff suppressed because it is too large Load Diff

View File

@ -3,13 +3,16 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"devDependencies": {
"chai": "^4.2.0",
"cucumber": "^5.0.3"
"chai": "^5.1.2"
},
"dependencies": {
"@cucumber/cucumber": "^11.1.1"
}
}