-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
WIP: Fix for #846, Support code aliases break step definition stacktrace (v2.3.0) #853
Conversation
getting latest from main project
Please remove the changes to the |
@charlierudolph I reverted my changes to package.json. |
Were you looking at this function? That gets called in defineStep / defineHook / registerHandler. We may be able to write a failing feature test for this or even a unit test. Creating a failing test case is probably the best way to start |
Thanks I'll take a look
…On Mon, 12 Jun 2017 at 19:03 Charlie Rudolph ***@***.***> wrote:
Were you looking at this function
<https://github.com/cucumber/cucumber-js/blob/5c4bb4353fc10121e271f79d01fb5474cf7b4e76/src/support_code_library/helpers.js#L47>?
That gets called in defineStep / defineHook / registerHandler. We may be
able to write a failing feature test for this or even a unit test. Creating
a failing test case is probably the best case to start
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#853 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF29TrRP6Gujo07FYusrAMTf6S8MRcydks5sDWE5gaJpZM4N2UFe>
.
|
@charlierudolph I've added failing tests now for defineStep / defineHook / registerHandler. |
@pittgoose so I believe we need to update the function I linked in the previous comment. That is currently assuming the user code is three up the stack. However, it now may be four up the stack when using the direct imports. In order to combat this, I think we should look through the stack searching for the first one that is not in the cucumber node module. Here is an example of getting the project path which we would need to check if the stack contains in order to tell if it in the cucumber node module. |
@charlierudolph could you let me know if you have some time to work on this at the same time? I'm totally confused but would really like to fix this. |
superseded by #881 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is a WIP PR for fixing issue #846 with @charlierudolph