diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2023-03-30 19:40:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 17:40:22 +0000 |
commit | 206c593519681a024409d9dd23ef55b1d13d938f (patch) | |
tree | 33d9fb0809e82f2b4c30bd6fb21e1e467acd60d5 /cli/npm/resolvers/mod.rs | |
parent | 30ee8465882d27499344062df05b05af99075c31 (diff) |
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.
Diffstat (limited to 'cli/npm/resolvers/mod.rs')
-rw-r--r-- | cli/npm/resolvers/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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, |