feat(test): support DENO_COVERAGE_DIR env var (#28291)

This PR adds support of `DENO_COVERAGE_DIR` for controlling coverage
output.
This commit is contained in:
Yoshiya Hinosawa 2025-04-17 01:47:28 +09:00 committed by GitHub
parent a5b407c390
commit 202f5f3910
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 43 additions and 1 deletions

View file

@ -838,7 +838,7 @@ impl CliOptions {
.coverage_dir
.as_ref()
.map(ToOwned::to_owned)
.or_else(|| env::var("DENO_UNSTABLE_COVERAGE_DIR").ok()),
.or_else(|| env::var("DENO_COVERAGE_DIR").ok()),
_ => None,
}
}