mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 08:33:43 -05:00
chore: temporarily disable deprecation warnings (#22204)
This commit is contained in:
parent
95e4741f00
commit
fddbb018c1
3 changed files with 33 additions and 28 deletions
|
@ -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,
|
||||
))
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue