vitest-cucumber-plugin
vitest-cucumber-plugin copied to clipboard
Make the step definitions glob pattern configurable
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).