From a3b3a792b5c8dd2fa3e1b29f7fe5a7f3423f25c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 10 Jan 2022 17:36:58 +0100 Subject: 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. --- cli/file_fetcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/file_fetcher.rs') 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, -- cgit v1.2.3