summaryrefslogtreecommitdiff
path: root/cli/tools/test/mod.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-09-08 15:04:45 +0100
committerGitHub <noreply@github.com>2023-09-08 15:04:45 +0100
commit17276a1df9fb4926f813d2b8a5ac2a2a8bf289eb (patch)
tree7e511b1536692ab82c7ccc7f424cb572c211217e /cli/tools/test/mod.rs
parent14522fc62886b95431f62d5bd21d70cfaac780ee (diff)
fix: empty include in config file excludes all (#20404)
Diffstat (limited to 'cli/tools/test/mod.rs')
-rw-r--r--cli/tools/test/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tools/test/mod.rs b/cli/tools/test/mod.rs
index 15f8d2597..87ca7f3f5 100644
--- a/cli/tools/test/mod.rs
+++ b/cli/tools/test/mod.rs
@@ -1199,7 +1199,9 @@ pub async fn run_tests_with_watch(
let test_options = cli_options.resolve_test_options(test_flags)?;
let _ = sender.send(cli_options.watch_paths());
- let _ = sender.send(test_options.files.include.clone());
+ if let Some(include) = &test_options.files.include {
+ let _ = sender.send(include.clone());
+ }
let graph_kind = cli_options.type_check_mode().as_graph_kind();
let log_level = cli_options.log_level();