Skip to content

Scope paths where step definition snippets are generated #242

Open
@ibrahimBeladi

Description

@ibrahimBeladi

🤔 What's the problem you've observed?

When using a package that provides a list of gherkins, and when having custom gherkin, then the step definition will suggest both the package's step definition files and the local files. Where it should be only the local files, or a specified list of files.

"cucumber.glue": [
    // writable
    "uuv/cucumber/**/*.ts",

    "node_modules/@uuv/*/src/cucumber/step_definitions/*/unsafe/**/_en-*.ts",
    "node_modules/@uuv/*/src/cucumber/step_definitions/*/generated/en/*.ts",
    "node_modules/@uuv/*/src/cucumber/step_definitions/*/generated/enriched/*/*.ts"
  ],

image

✨ Do you have a proposal for making it better?

I am thinking of 2 solutions:

  • Split the glue property into 2 properties
  • Make the glue property allow having object syntax, where we can add a key called showInAutoCompletion or something similar

📚 Any additional context?

I am using uuv, so this issue is not wide spread yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions