mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
fix(cli): always allow documentation modules to be checked (#10581)
This commit is contained in:
parent
72eb6e1d7c
commit
2fe4aaa10d
1 changed files with 7 additions and 8 deletions
|
@ -331,14 +331,6 @@ pub async fn run_tests(
|
|||
filter: Option<String>,
|
||||
concurrent_jobs: usize,
|
||||
) -> Result<bool, AnyError> {
|
||||
if test_modules.is_empty() {
|
||||
println!("No matching test modules found");
|
||||
if !allow_none {
|
||||
std::process::exit(1);
|
||||
}
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
if !doc_modules.is_empty() {
|
||||
let mut test_programs = Vec::new();
|
||||
|
||||
|
@ -415,6 +407,13 @@ pub async fn run_tests(
|
|||
program_state.maybe_import_map.clone(),
|
||||
)
|
||||
.await?;
|
||||
} else if test_modules.is_empty() {
|
||||
println!("No matching test modules found");
|
||||
if !allow_none {
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
program_state
|
||||
|
|
Loading…
Reference in a new issue