-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support more than three stages #58
Comments
I'm not sure I exactly understand this. If yes, I think it's possible already using javascript mixins, and even benefit from type-safety by using type intersections in both flowtype & typescript. |
Ok. Maybe I have not completely understand your implementation. It seems that you could only use at most three stages in a single scenario. In JGiven you can have additional stages by injecting them into the test class using the @ScenarioStage annotation. |
The scenarios() method takes as second argument a StagesParam<G, W, T> : That mean that you can pass either:
I understand now what you mean: @ScenarioStage can be used:
It's nicer than using javascript mixins to merge stages. So, it's not possible yet in jsgiven. |
There should be a way of dynamically add additional stages to a scenario so that one is not limited to three stages
The text was updated successfully, but these errors were encountered: