summaryrefslogtreecommitdiff
path: root/deps/npm/test/coverage-map.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/coverage-map.js')
-rw-r--r--deps/npm/test/coverage-map.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/deps/npm/test/coverage-map.js b/deps/npm/test/coverage-map.js
deleted file mode 100644
index 9a289b6489..0000000000
--- a/deps/npm/test/coverage-map.js
+++ /dev/null
@@ -1,26 +0,0 @@
-const coverageMap = (filename) => {
- const { basename } = require('path')
- const testbase = basename(filename)
- if (filename === 'test/index.js') {
- return ['index.js']
- }
- if (testbase === 'load-all-commands.js') {
- const { cmdList } = require('../lib/utils/cmd-list.js')
- return cmdList.map(cmd => `lib/${cmd}.js`)
- .concat('lib/base-command.js')
- }
- if (/^test\/lib\/commands/.test(filename) || filename === 'test/lib/npm.js') {
- return [
- filename.replace(/^test\//, ''),
- 'lib/npm.js',
- 'lib/base-command.js',
- 'lib/exec/get-workspace-location-msg.js',
- ]
- }
- if (/^test\/(lib|bin)\//.test(filename)) {
- return filename.replace(/^test\//, '')
- }
- return []
-}
-
-module.exports = coverageMap