summaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-06-26 23:17:00 +0100
committerGitHub <noreply@github.com>2024-06-27 00:17:00 +0200
commit2a2ff96be13047cb50612fde0f12e5f6df374ad3 (patch)
tree655ec1d1308db13c1faa917fd02321ee30c85efe /tests/util
parent0da01c0ca6b537f74be32126e567bdfc2c73ed16 (diff)
fix(ext/node): discover .npmrc in user's homedir (#24021)
This commit adds discovery of `.npmrc` files in user's homedir. This is not a perfect fix as it doesn't merge multiple `.npmrc` files together as per https://github.com/denoland/deno/issues/23954 but allows to fallback if no `.npmrc` file is discovered in the project root.
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/server/src/builders.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util/server/src/builders.rs b/tests/util/server/src/builders.rs
index 58563bd03..4130a44e7 100644
--- a/tests/util/server/src/builders.rs
+++ b/tests/util/server/src/builders.rs
@@ -32,6 +32,7 @@ use crate::npm_registry_unset_url;
use crate::pty::Pty;
use crate::strip_ansi_codes;
use crate::testdata_path;
+use crate::tests_path;
use crate::HttpServerGuard;
use crate::TempDir;
@@ -837,6 +838,7 @@ impl TestCommandBuilder {
text
.replace("$DENO_DIR", &self.deno_dir.path().to_string_lossy())
.replace("$TESTDATA", &testdata_path().to_string_lossy())
+ .replace("$TESTS", &tests_path().to_string_lossy())
.replace("$PWD", &cwd.to_string_lossy())
}
}