timjroberts / cucumber-js-tsflow

Provides 'specflow' like bindings for Cucumber.js in TypeScript 1.7+.
MIT License
133 stars 34 forks source link

Undefined step with @cucumber/cucumber v7.2.1 #84

Closed vitalyiegorov closed 3 years ago

vitalyiegorov commented 3 years ago

Stopped working after migrating to "@cucumber/cucumber":"7.2.1", does not see @given(...), @when(...), @then(...) decorators and got "Undefined step" for all steps.

Tried using latest "cucumber-tsflow": "^4.0.0-rc.1" version but it didn't help.

Seems like new cucumber package does not resolve lower case given decorator names?

vitalyiegorov commented 3 years ago

Further investigation showed that the problem is not with cucumber-js-tsflow it is related to @wdio/cucumer-framework package, I guess something needs to be improved related to this logic

vitalyiegorov commented 3 years ago

Absolutely my bad, I forgot to add @binding() decorator to my class with step definitions. Everything works perfectly, thanks for the great lib!