diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-11-23 05:45:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 21:45:44 +0100 |
commit | e3f73d3ec0aa822c9d125374ec34b7d8d5dfc0a5 (patch) | |
tree | 1f61389d70aeb116bb7075d5489c042d5d8a2d52 /cli/tools/test_runner.rs | |
parent | 17d4cd92133bb822ff3a4f2f5bb32dfd17f99282 (diff) |
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.
Diffstat (limited to 'cli/tools/test_runner.rs')
-rw-r--r-- | cli/tools/test_runner.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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()) |