microsoft / microsoft/vscode-test-web
Pass the environment variables to the test env, for example `CI`
Open
@aeschli is already working on this.
Since Oct 22, 2024.
feature-request
- Dominant language
- HTML
- Stars
- 87
- Forks
- 31
- Avg merge
- 23h 49m
- Merged PRs (30d)
- 5
Description
When tests are run by vscode-test-web, process.env is empty.
This is inconvenient, for example, when the CI envvar is checked in the test files to detect the GitHub Actions environment.
It would be nice if there is an option to pass all or some of the environment variables from the parent env to the browser env launched by this library, or an option to set arbitrary envvars in the test env.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.