Currently, I have a config file which is an array of objects containing different data based on which environment I'm testing: development, integration, stage, and production.
Right now, my workflow is as follows:
- Set the NODE_ENV
$env:NODE_ENV="development"testcafe "chrome --incognito" tests/smoke.ts`
- Run the fixture:
Is there a way to pass a custom argument so that this can be done in one line? E.g.,
testcafe "chrome --incognito" tests/smoke.ts --custom env:development
This would also be helpful for using the VS Code extension with the args array in the launch.json