Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-09-15 21:29:13 +0300
committerGar <gar+gh@danger.computer>2021-10-07 19:07:19 +0300
commita13d9d53ddf3e0f52f4a39fe116653bf40cf99e5 (patch)
treec281324e40798b6e8e1ed53a9a2d55dd8f87b91a /test/coverage-map.js
parent32e163fd10aace69d927dae46d04d64c04e5014b (diff)
feat: drop node 10, 11, and programmatic api
BREAKING CHANGE: - Drop official support for node versions less than v12. - Drop support for `require('npm')` - Update a few subdependencies that dropped node10 support, and brought in the latest node-gyp PR-URL: https://github.com/npm/cli/pull/3762 Credit: @wraithgar Close: #3762 Reviewed-by: @fritzy
Diffstat (limited to 'test/coverage-map.js')
-rw-r--r--test/coverage-map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/coverage-map.js b/test/coverage-map.js
index 63f2a608e..aff7a6527 100644
--- a/test/coverage-map.js
+++ b/test/coverage-map.js
@@ -11,7 +11,7 @@ const coverageMap = (filename) => {
// this one doesn't provide any coverage nyc can track
return []
}
- if (/^test\/(lib|bin)\//.test(filename))
+ if (/^test\/(lib\/|bin\/|index\.js$)/.test(filename))
return filename.replace(/^test\//, '')
return []
}