summaryrefslogtreecommitdiff
path: root/test_util/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r--test_util/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index bcd58a3a6..9bf68cbc2 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -100,7 +100,11 @@ pub fn npm_registry_unset_url() -> String {
}
pub fn jsr_registry_url() -> String {
- "http://localhost:4545/jsr/registry/".to_string()
+ "http://127.0.0.1:4250/".to_string()
+}
+
+pub fn jsr_registry_unset_url() -> String {
+ "http://DENO_REGISTRY_URL.is.unset".to_string()
}
pub fn std_path() -> PathRef {
@@ -441,6 +445,7 @@ pub fn deno_cmd_with_deno_dir(deno_dir: &TempDir) -> TestCommandBuilder {
TestCommandBuilder::new(deno_dir.clone())
.env("DENO_DIR", deno_dir.path())
.env("NPM_CONFIG_REGISTRY", npm_registry_unset_url())
+ .env("DENO_REGISTRY_URL", jsr_registry_unset_url())
}
pub fn run_powershell_script_file(