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
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user