Skip to content

Commit b6ea965

Browse files
committedJan 24, 2020
coverage-map for test coverage focus
1 parent 19511d6 commit b6ea965

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎map.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const {basename} = require('path')
2+
const map = base =>
3+
base === 'index.js' ? 'index.js'
4+
: base === 'cmd.js' ? 'bin/cmd.js'
5+
: `lib/${base}`
6+
module.exports = test => map(basename(test))

0 commit comments

Comments
 (0)
Please sign in to comment.