How to use the gherkin.GherkinQuery function in gherkin

To help you get started, we’ve selected a few gherkin 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 / cucumber-react / javascript / stories / index.stories.tsx View on Github external
.add('Document list', () => {
    const gherkinDocuments = envelopes.filter(e => e.gherkinDocument).map(e => e.gherkinDocument)
    const gherkinQuery = new GherkinQuery()
    const cucumberQuery = new CucumberQuery(gherkinQuery)
    for (const envelope of envelopes) {
      gherkinQuery.update(envelope)
      cucumberQuery.update(envelope)
    }
    return 
  })
  .add('Steps', () => {
github cucumber / cucumber / cucumber-react / javascript / stories / index.stories.tsx View on Github external
children: [],
              }),
            }),
            new messages.StepMatchArgument({
              group: new messages.StepMatchArgument.Group({
                start: 22,
                value: '1st Nov',
                children: [],
              }),
            }),
          ]
        })]
      }
    }

  return 
      
    
  })
github cucumber / cucumber / cucumber-react / javascript / src / CucumberQueryContext.ts View on Github external
import React from 'react'
import CucumberQuery from 'cucumber-query'
import { GherkinQuery } from 'gherkin'

export default React.createContext(new CucumberQuery(new GherkinQuery()))