How do you insert environment variable into cli_config.json file ? #128
Replies: 2 comments 2 replies
-
I found a solution using |
Beta Was this translation helpful? Give feedback.
-
yeah nothing easy at the moment. I feel like there should be an extra cli param e.g.
full cli would look something like this:
^ the meta cli param will take priority over the value in the values in config file |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm actually using this command :
npx playwright-slack-report --config="./cli_config.json" --json-results="./merged_tests_results.json"
to do the Slack reporting. But as I'm using the json file option, how can I use environment variable on it ?Like, how can I call my CI env variable here :
In the
.gitlab-ci.yml
it works properly, in theplaywright.config.ts
file too. But for the.json
file, I don't find a solution as I though it would be compiled by node.Is their a possibility to replace the
cli_config.json
to ascli_config.ts
file ? If yes, is their an example to see how it works ?Beta Was this translation helpful? Give feedback.
All reactions