summaryrefslogtreecommitdiff
path: root/tests/util/server/src/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-07 21:13:36 +0000
committerGitHub <noreply@github.com>2024-03-07 22:13:36 +0100
commit914b7495a854981a3671e24f527d792f2ad1b324 (patch)
treeffe7eac41c1fe904f57973a8afaeb02d7df3a6f6 /tests/util/server/src/lib.rs
parente0c9102b49ab333e0229247c446d12e27750785c (diff)
fix(publish): reland error if there are uncommitted changes (#22613) (#22632)
Reverted in https://github.com/denoland/deno/pull/22625
Diffstat (limited to 'tests/util/server/src/lib.rs')
-rw-r--r--tests/util/server/src/lib.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/util/server/src/lib.rs b/tests/util/server/src/lib.rs
index e06ba2b39..debe2b698 100644
--- a/tests/util/server/src/lib.rs
+++ b/tests/util/server/src/lib.rs
@@ -57,7 +57,7 @@ pub fn env_vars_for_npm_tests() -> Vec<(String, String)> {
]
}
-pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> {
+pub fn env_vars_for_jsr_tests_with_git_check() -> Vec<(String, String)> {
vec![
("JSR_URL".to_string(), jsr_registry_url()),
("DISABLE_JSR_PROVENANCE".to_string(), "true".to_string()),
@@ -65,6 +65,17 @@ pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> {
]
}
+pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> {
+ let mut vars = env_vars_for_jsr_tests_with_git_check();
+
+ vars.push((
+ "DENO_TESTING_DISABLE_GIT_CHECK".to_string(),
+ "1".to_string(),
+ ));
+
+ vars
+}
+
pub fn env_vars_for_jsr_provenance_tests() -> Vec<(String, String)> {
let mut envs = env_vars_for_jsr_tests();
envs.retain(|(key, _)| key != "DISABLE_JSR_PROVENANCE");
@@ -114,6 +125,10 @@ pub fn env_vars_for_jsr_npm_tests() -> Vec<(String, String)> {
vec![
("NPM_CONFIG_REGISTRY".to_string(), npm_registry_url()),
("JSR_URL".to_string(), jsr_registry_url()),
+ (
+ "DENO_TESTING_DISABLE_GIT_CHECK".to_string(),
+ "1".to_string(),
+ ),
("DISABLE_JSR_PROVENANCE".to_string(), "true".to_string()),
("NO_COLOR".to_string(), "1".to_string()),
]