Replies: 2 comments 2 replies
-
@elchupanebrej I was inspired to have this change after reading your comment |
Beta Was this translation helpful? Give feedback.
1 reply
-
@youtux is this still something that you think would be helpful to revisit? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reading the comment at #310 (comment) (and relative implementation), I figured out that we could make the
scenarios(...)
function much neater if we made it return a class instead of injecting into the module locals.For example, given the following feature file:
and the following file:
and it would be syntactic sugar for the following:
This way, if a user needs to override a specific scenario for whatever reason, that could be done easily like this:
I can imagine an stub implementation of
scenarios(...)
to be something like this:Beta Was this translation helpful? Give feedback.
All reactions