Switch to ESM
This commit is contained in:
@ -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
|
||||
})
|
||||
|
||||
|
2702
type-parser/package-lock.json
generated
2702
type-parser/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user