Skip to content

Commit

Permalink
coverage-map for test coverage focus
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 24, 2020
1 parent 19511d6 commit b6ea965
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions map.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const {basename} = require('path')
const map = base =>
base === 'index.js' ? 'index.js'
: base === 'cmd.js' ? 'bin/cmd.js'
: `lib/${base}`
module.exports = test => map(basename(test))

0 comments on commit b6ea965

Please sign in to comment.