summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author李瑞丰 <liruifeng1024@gmail.com>2023-07-25 12:07:54 +0800
committerGitHub <noreply@github.com>2023-07-25 06:07:54 +0200
commit8053df2de68b8a423c887d3d69a6282f898227bf (patch)
tree9d7f5f6d1ff630b644d8483e2344cf4cb33c8bba
parentb9765647deebee0bf6ad0ed58cf744ee2f9e1570 (diff)
fix(cli/test): fix clear screen behavior when run `deno test --watch` (#19888)
fix #19725
-rw-r--r--cli/tools/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index 1f3f4494f..919361eaa 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -1789,7 +1789,7 @@ pub async fn run_tests_with_watch(
flags,
file_watcher::PrintConfig {
job_name: "Test".to_string(),
- clear_screen: !test_flags
+ clear_screen: test_flags
.watch
.as_ref()
.map(|w| !w.no_clear_screen)