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
})