From e3f73d3ec0aa822c9d125374ec34b7d8d5dfc0a5 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Mon, 23 Nov 2020 05:45:44 +0900 Subject: feat(unstable): Support --watch flag for bundle and fmt subcommands (#8276) This commit adds support for "--watch" flag for "bundle" and "fmt" subcommands. In addition to this, it refactors "run --watch" command so that module resolution will occur every time the file watcher detects file addition/deletion, which allows the watcher to observe a file that is newly added to the dependency as well. --- cli/tools/test_runner.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/tools/test_runner.rs') diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs index 599a95059..64cff7e0f 100644 --- a/cli/tools/test_runner.rs +++ b/cli/tools/test_runner.rs @@ -44,8 +44,7 @@ pub fn prepare_test_modules_urls( for path in include_paths { let p = fs_util::normalize_path(&root_path.join(path)); if p.is_dir() { - let test_files = - crate::fs_util::collect_files(vec![p], vec![], is_supported).unwrap(); + let test_files = fs_util::collect_files(&[p], &[], is_supported).unwrap(); let test_files_as_urls = test_files .iter() .map(|f| Url::from_file_path(f).unwrap()) -- cgit v1.2.3