summaryrefslogtreecommitdiff
path: root/cli/tools/check.rs
diff options
context:
space:
mode:
authorHajime-san <41257923+Hajime-san@users.noreply.github.com>2024-05-28 22:34:57 +0900
committerGitHub <noreply@github.com>2024-05-28 13:34:57 +0000
commit9aa593cd5d4024890e36af7842f1eb4b4c3bd544 (patch)
tree9852e27158ed856700f28095b1f763752001bc0e /cli/tools/check.rs
parentdc5c799c398ef1c396ff765726b93b65a4f2996b (diff)
fix(cli/test): decoding percent-encoding(non-ASCII) file path correctly (#23200)
# Summary This PR resolves about the issue. fixes #10810 And the formerly context is in the PR. #22582 Here is an expected behaviour example with this change. - 🦕.test.ts ```ts import { assertEquals } from "https://deno.land/std@0.215.0/assert/mod.ts"; Deno.test("example test", () => { assertEquals("🍋", "🦕"); }); ```
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r--cli/tools/check.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs
index 87ec88a4a..c154ada7a 100644
--- a/cli/tools/check.rs
+++ b/cli/tools/check.rs
@@ -27,6 +27,7 @@ use crate::graph_util::ModuleGraphBuilder;
use crate::npm::CliNpmResolver;
use crate::tsc;
use crate::tsc::Diagnostics;
+use crate::util::path::to_percent_decoded_str;
use crate::version;
/// Options for performing a check of a module graph. Note that the decision to
@@ -154,7 +155,11 @@ impl TypeChecker {
for root in &graph.roots {
let root_str = root.as_str();
- log::info!("{} {}", colors::green("Check"), root_str);
+ log::info!(
+ "{} {}",
+ colors::green("Check"),
+ to_percent_decoded_str(root_str)
+ );
}
let check_js = ts_config.get_check_js();