How to use the cucumber-expressions/dist/src/CucumberExpression function in cucumber-expressions

To help you get started, we’ve selected a few cucumber-expressions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cucumber / cucumber / fake-cucumber / javascript / src / FakeStepDefinitions.ts View on Github external
constructor(
    public status: string,
    public pattern: string = null
  ) {
    this.id = uuidv4()
    if (pattern === null) {
      this.pattern = `{}${status}{}`
    }
    this.expression = new CucumberExpression(this.pattern, new ParameterTypeRegistry)
  }