codeceptjs 4.0.0-beta.19 → 4.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/mocha/gherkin.js +4 -4
- package/package.json +1 -1
package/lib/mocha/gherkin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AstBuilder, GherkinClassicTokenMatcher, Parser } from '@cucumber/gherkin'
|
|
2
2
|
import { IdGenerator } from '@cucumber/messages'
|
|
3
3
|
import { Context, Suite } from 'mocha'
|
|
4
4
|
import debug from 'debug'
|
|
@@ -15,9 +15,9 @@ import { createTest } from './test.js'
|
|
|
15
15
|
import { matchStep } from './bdd.js'
|
|
16
16
|
|
|
17
17
|
const uuidFn = IdGenerator.uuid()
|
|
18
|
-
const builder = new
|
|
19
|
-
const matcher = new
|
|
20
|
-
const parser = new
|
|
18
|
+
const builder = new AstBuilder(uuidFn)
|
|
19
|
+
const matcher = new GherkinClassicTokenMatcher()
|
|
20
|
+
const parser = new Parser(builder, matcher)
|
|
21
21
|
parser.stopAtFirstError = false
|
|
22
22
|
|
|
23
23
|
const gherkinParser = (text, file) => {
|