summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-10 17:36:58 +0100
committerGitHub <noreply@github.com>2022-01-10 17:36:58 +0100
commita3b3a792b5c8dd2fa3e1b29f7fe5a7f3423f25c0 (patch)
tree4e7eecd4c33a02ada01094d1ac83ab3162bd1695 /cli/file_fetcher.rs
parentd8e96d2742bcbbbc6381b908a68067ec46fc320f (diff)
fix(coverage): don't type check (#13324)
This commit changes "deno coverage" command not to type check. Instead of relying on infrastructure for module loading in "deno run"; the code now directly reaches into cache for original and transpiled sources. In case sources are not available the error is returned to the user, suggesting to first run "deno test --coverage" command.
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r--cli/file_fetcher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs
index 1c3b093ff..2a7b86727 100644
--- a/cli/file_fetcher.rs
+++ b/cli/file_fetcher.rs
@@ -328,7 +328,7 @@ impl FileFetcher {
/// Fetch cached remote file.
///
/// This is a recursive operation if source file has redirections.
- fn fetch_cached(
+ pub(crate) fn fetch_cached(
&self,
specifier: &ModuleSpecifier,
redirect_limit: i64,