From c1a8a171c4f8cf0f2dc69a04df2265f836594829 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 26 Sep 2021 22:04:28 +0800 Subject: [PATCH] add file on windows --- cli/tools/installer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index 4ca26d0abeae7..18d2d20e740c8 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -986,6 +986,10 @@ mod tests { let mut file_path = bin_dir.join("echo_test"); File::create(&file_path).unwrap(); + if cfg!(windows) { + file_path = file_path.with_extension("cmd"); + File::create(&file_path).unwrap(); + } // create extra files file_path = file_path.with_extension("tsconfig.json");