diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-31 23:18:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 23:18:14 +0100 |
commit | fddbb018c1f2467eef49fdef46488337b869fc38 (patch) | |
tree | fa6cd8e75ebc879d4b4c4e2572bef6d940cfa57f | |
parent | 95e4741f0008577097984752e8eb3960e68ff169 (diff) |
chore: temporarily disable deprecation warnings (#22204)
-rw-r--r-- | cli/factory.rs | 4 | ||||
-rw-r--r-- | cli/standalone/mod.rs | 4 | ||||
-rw-r--r-- | cli/tests/integration/run_tests.rs | 53 |
3 files changed, 33 insertions, 28 deletions
diff --git a/cli/factory.rs b/cli/factory.rs index 6e340c3c0..32cb256a3 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -773,7 +773,9 @@ impl CliFactory { self.feature_checker().clone(), self.create_cli_main_worker_options()?, self.options.node_ipc_fd(), - self.options.disable_deprecated_api_warning, + // TODO(bartlomieju): temporarily disabled + // self.options.disable_deprecated_api_warning, + true, self.options.verbose_deprecated_api_warning, )) } diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 6859c6a62..0175b9c11 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -541,7 +541,9 @@ pub async fn run( maybe_root_package_json_deps: package_json_deps_provider.deps().cloned(), }, None, - metadata.disable_deprecated_api_warning, + // TODO(bartlomieju): temporarily disabled + // metadata.disable_deprecated_api_warning, + true, false, ); diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 0b9f50fc3..d722b23c7 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -5216,35 +5216,36 @@ itest!(unstable_temporal_api_missing_flag { exit_code: 1, }); -itest!(warn_on_deprecated_api { - args: "run -A run/warn_on_deprecated_api/main.js", - output: "run/warn_on_deprecated_api/main.out", - http_server: true, - exit_code: 0, -}); +// TODO(bartlomieju): temporary disabled +// itest!(warn_on_deprecated_api { +// args: "run -A run/warn_on_deprecated_api/main.js", +// output: "run/warn_on_deprecated_api/main.out", +// http_server: true, +// exit_code: 0, +// }); -itest!(warn_on_deprecated_api_verbose { - args: "run -A run/warn_on_deprecated_api/main.js", - output: "run/warn_on_deprecated_api/main.verbose.out", - envs: vec![("DENO_VERBOSE_WARNINGS".to_string(), "1".to_string())], - http_server: true, - exit_code: 0, -}); +// itest!(warn_on_deprecated_api_verbose { +// args: "run -A run/warn_on_deprecated_api/main.js", +// output: "run/warn_on_deprecated_api/main.verbose.out", +// envs: vec![("DENO_VERBOSE_WARNINGS".to_string(), "1".to_string())], +// http_server: true, +// exit_code: 0, +// }); -itest!(warn_on_deprecated_api_with_flag { - args: "run -A --quiet run/warn_on_deprecated_api/main.js", - output: "run/warn_on_deprecated_api/main_disabled_flag.out", - http_server: true, - exit_code: 0, -}); +// itest!(warn_on_deprecated_api_with_flag { +// args: "run -A --quiet run/warn_on_deprecated_api/main.js", +// output: "run/warn_on_deprecated_api/main_disabled_flag.out", +// http_server: true, +// exit_code: 0, +// }); -itest!(warn_on_deprecated_api_with_env_var { - args: "run -A run/warn_on_deprecated_api/main.js", - envs: vec![("DENO_NO_DEPRECATION_WARNINGS".to_string(), "1".to_string())], - output: "run/warn_on_deprecated_api/main_disabled_env.out", - http_server: true, - exit_code: 0, -}); +// itest!(warn_on_deprecated_api_with_env_var { +// args: "run -A run/warn_on_deprecated_api/main.js", +// envs: vec![("DENO_NO_DEPRECATION_WARNINGS".to_string(), "1".to_string())], +// output: "run/warn_on_deprecated_api/main_disabled_env.out", +// http_server: true, +// exit_code: 0, +// }); #[test] fn deno_json_imports_expand() { |