1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

fix(cli/test): fix clear screen behavior when run deno test --watch (#19888)

fix #19725
This commit is contained in:
李瑞丰 2023-07-25 12:07:54 +08:00 committed by Matt Mastracci
parent 1cd1a63bdd
commit 2b8fe5d482

View file

@ -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)