Although there are similar questions already asked, I still have a specific scenario that I need help with:
In the example I am working on, I am using this repository and I have a script block in my package.json as follows:
I want to be able to pass a parameter from the command line to specify the environment for testing, something like:
-- testEnv=staging
How can I modify the script block below to accommodate this change?
I have attempted to set different configurations for the world parameter like so:
--world-parameters \"{\\\"environment\\\": \\\"Dev\\\"}\"
However, managing multiple versions of world parameter configurations has become confusing, so I am looking to use command line to send variable values through instead.
"scripts": {
"test-chrome": "./node_modules/.bin/cucumber-js.cmd --tags @Run --format json:./testlab/support/reports/report.json",
}