timjroberts / cucumber-js-tsflow

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

Share Step Definitions across projects #6

Closed tommysullivan closed 8 years ago

tommysullivan commented 8 years ago

In large test suites, we want to share step definitions via npm modules. It does seem that due to the nature of the singleton / node's require behavior / typescript's decorator implementation that a running cucumber cannot find step definitions that have been loaded from a dependency module.

tommysullivan commented 8 years ago

Actually works, just need to require the deeply nested path in cucumber CLI args, even if we require the module's step definitions in the world file! Sorry for the false issue! Great library :)