From 206c593519681a024409d9dd23ef55b1d13d938f Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Thu, 30 Mar 2023 19:40:22 +0200 Subject: fix(coverage): ignore files from npm registry (#18457) Fixes https://github.com/denoland/deno/issues/17664 and part of https://github.com/denoland/deno/issues/18454 by excluding files belonging to npm modules by default in the coverage output. --- cli/npm/resolvers/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/npm') diff --git a/cli/npm/resolvers/mod.rs b/cli/npm/resolvers/mod.rs index 61b020885..c8ac6f44a 100644 --- a/cli/npm/resolvers/mod.rs +++ b/cli/npm/resolvers/mod.rs @@ -74,6 +74,10 @@ impl NpmPackageResolver { } } + pub fn root_dir_url(&self) -> &Url { + self.fs_resolver.root_dir_url() + } + pub fn resolve_pkg_id_from_pkg_req( &self, req: &NpmPackageReq, -- cgit v1.2.3