How to get step result in AfterStep method cucumber.js

As the title says, how can I find the result of the step in the AfterStep cucumber.js hook?

+3


source to share


1 answer


I think the question is about Cucumber.js 1.3x which is pretty old. Cucumber.js 3.x lacks a hook after AfterStep, instead there is a function called setDefinitionFunctionWrapper that can wrap a step definition, which you have a chance to get the result of the step deforming and process it.



Here is the documentation on setDefinitionFunctionWrapper

+1


source







All Articles