vitest-cucumber-plugin icon indicating copy to clipboard operation
vitest-cucumber-plugin copied to clipboard

Make the step definitions glob pattern configurable

Open joakimbeng opened this issue 1 year ago • 3 comments

To be able to place my step definitions wherever I want (I have them in **/*.steps.ts files) I need the glob pattern for the step definition files to be configurable. This PR adds support for that.

BREAKING CHANGE: this PR also moves the plugin's configuration to be a parameter for the plugin function instead of being part of Vitest's test config, as the latter is much harder to add TypeScript types for in a good way (which I will follow up with once TS support is added/merged).

joakimbeng avatar May 25 '23 08:05 joakimbeng