1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -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 GitHub
parent b9765647de
commit 8053df2de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)