diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 05c017e81..614a975b1 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -2199,6 +2199,9 @@ fn run_parse(flags: &mut Flags, matches: &clap::ArgMatches) { fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) { runtime_args_parse(flags, matches, true, true); + // NOTE: `deno test` always uses `--no-prompt`, tests shouldn't ever do + // interactive prompts, unless done by user code + flags.no_prompt = true; let ignore = match matches.values_of("ignore") { Some(f) => f.map(PathBuf::from).collect(), @@ -4453,6 +4456,7 @@ mod tests { trace_ops: true, }), unstable: true, + no_prompt: true, coverage_dir: Some("cov".to_string()), location: Some(Url::parse("https://foo/").unwrap()), allow_net: Some(vec![]), @@ -4521,6 +4525,7 @@ mod tests { concurrent_jobs: NonZeroUsize::new(4).unwrap(), trace_ops: false, }), + no_prompt: true, ..Flags::default() } ); @@ -4547,6 +4552,7 @@ mod tests { concurrent_jobs: NonZeroUsize::new(1).unwrap(), trace_ops: false, }), + no_prompt: true, ..Flags::default() } ); @@ -4577,6 +4583,7 @@ mod tests { concurrent_jobs: NonZeroUsize::new(1).unwrap(), trace_ops: false, }), + no_prompt: true, enable_testing_features: true, ..Flags::default() } @@ -4601,6 +4608,7 @@ mod tests { concurrent_jobs: NonZeroUsize::new(1).unwrap(), trace_ops: false, }), + no_prompt: true, watch: None, ..Flags::default() } @@ -4625,6 +4633,7 @@ mod tests { concurrent_jobs: NonZeroUsize::new(1).unwrap(), trace_ops: false, }), + no_prompt: true, watch: Some(vec![]), ..Flags::default() } @@ -4652,6 +4661,7 @@ mod tests { }), watch: Some(vec![]), no_clear_screen: true, + no_prompt: true, ..Flags::default() } ); |