From 17276a1df9fb4926f813d2b8a5ac2a2a8bf289eb Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 8 Sep 2023 15:04:45 +0100 Subject: fix: empty include in config file excludes all (#20404) --- cli/tools/test/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/tools/test') 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(); -- cgit v1.2.3