1.0.1 • Published 4 years ago
jest-cucumber-enhanced-autobind v1.0.1
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 likejest-cucumber's ownautoBindSteps.local(default): step definitions are registered per call toautoBindSteps. This scope works just like @saasquatch/scoped-autobindsteps.