1.0.1 • Published 3 years ago

jest-cucumber-enhanced-autobind v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

jest-cucumber-enhanced-autobind

A replacement for jest-cucumber's autoBindSteps that allows more configuration options as an optional third argument.

Available options:

  • beforeFeature: a function that runs before each feature. The feature is given as function argument.
  • afterFeature: a function that runs after each feature. The feature is given as function argument.
  • beforeScenario: a function that runs before each scenario. The feature is given as function argument. Unfortunately, the scenario is not available.
  • afterScenario: a function that runs after each scenario. The feature is given as function argument. Unfortunately, the scenario is not available.
  • scope: the scope to register step definitions for. The narrower the scope, the smaller the chances for conflicts.\ Possible values:
    • global: step definitions are registered globally. This scope works just like jest-cucumber's own autoBindSteps.
    • local (default): step definitions are registered per call to autoBindSteps. This scope works just like @saasquatch/scoped-autobindsteps.