"main": "index.js",
"cypress-cucumber-preprocessor": {
"step_definitions": "src/shared/support/step_definitions/"
}
}
This is how it is written in the package.json. Is there any way I add another .ts file of another location, so that when a feature file is running, it will check both stepdefinitions files for automated implementation?
Edit: I also need to know whether there is any other preprocessor that allows me to include & specify stepdefinitions file in two different folder locations.
That is,
Instead of src/shared/support/step_definitions/
I need to specify two locations where cypress can look for step definitions while running the tests. Is there any preprocessors available which allows it?
If you look at the documentation here: https://github.com/TheBrainFamily/cypress-cucumber-preprocessor#cypress-configuration, I think you want to add '"nonGlobalStepDefinitions": false' to your package.json. That looks like it'll treat all step definitions as global.