cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.04k stars 1.09k forks source link

Add source reference on `Envelope.parameterType` #2272

Closed jkronegg closed 1 year ago

jkronegg commented 1 year ago

🤔 What's the problem you're trying to solve?

When implementing a plugin, I can determine the source reference of a Step Definition (using handler on Envelope.stepDefinition), but I cannot determine the source reference for a ParameterType.

The cause is CachingGlue.emitParameterTypeDefined which creates an Envelope with a ParameterType which miss the source reference information.

✨ What's your proposed solution?

A simple solution would be to:

⛏ Have you considered any alternatives or workarounds?

N/A