diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-11-14 21:05:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 13:05:26 +0100 |
commit | 3a0ebff641c5b5d8d3c87b67c3e6f5b4f004478f (patch) | |
tree | 6a9ed84a9bb4600f5cc2f2ebcee943945967ac7c /cli/test_runner.rs | |
parent | a59f5eadd86e85bf662b37ec40ceb6f80cb207c4 (diff) |
fix(fmt, lint): Make sure that target paths are not directory (#8375)
This commit merges implementations of "collect_files" and "files_in_subtree",
leaving only the former. Additionally it was ensured that directories are not yielded
from this function.
Diffstat (limited to 'cli/test_runner.rs')
-rw-r--r-- | cli/test_runner.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/test_runner.rs b/cli/test_runner.rs index fa0da706b..265b514c1 100644 --- a/cli/test_runner.rs +++ b/cli/test_runner.rs @@ -44,7 +44,8 @@ pub fn prepare_test_modules_urls( for path in include_paths { let p = deno_fs::normalize_path(&root_path.join(path)); if p.is_dir() { - let test_files = crate::fs::files_in_subtree(p, is_supported); + let test_files = + crate::fs::collect_files(vec![p], vec![], is_supported).unwrap(); let test_files_as_urls = test_files .iter() .map(|f| Url::from_file_path(f).unwrap()) |