Skip to content
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

Source map support #692

Open
badeball opened this issue Apr 11, 2022 · 3 comments
Open

Source map support #692

badeball opened this issue Apr 11, 2022 · 3 comments

Comments

@badeball
Copy link
Owner

badeball commented Apr 11, 2022

Per today, source maps aren't / can't be utilized. EG. when multiple step definitions match, we throw an error

Error: Multiple matching step definitions for: a step
  a step
  /a step/

.. while cucumber-js on the other hand, would throw something like

Multiple step definitions match:
  a step - features/step_definitions/cli_steps.ts:44
  /a step/ - features/step_definitions/cli_steps.ts:49

Furthermore, we just output dummy object in the JSON reports.

{
  "match": {
    "location": "not available:0"
  }
}
@badeball
Copy link
Owner Author

For reference, a PoC is avaliable in the branch source-map, but I'm waiting on evanw/esbuild#2218 to see if there's a smoother way of handling paths.

@lmiller1990
Copy link

I'm guessing this is the same issue preventing this user from seeing the stack trace? cypress-io/cypress#23563

@badeball
Copy link
Owner Author

badeball commented Sep 7, 2022

No, this is an entirely separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants