Skip to content

Commit

Permalink
fix nyc paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Nov 10, 2018
1 parent 888b674 commit 57c94b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bin/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ const nodeModules = path.join(cwd, 'node_modules')
const { name } = require(path.join(cwd, 'package.json'))

// find clipaths
let cliPath
let cliPath = path.join(nodeModules, '.bin', 'nyc')
let cmd
if (name === '@magic/test') {
cmd = path.join(cwd, 'src', 'bin', 'unit.js')
cliPath = path.join(nodeModules, '.bin', 'nyc')
} else {
cliPath = path.join(cwd, 'node_modules', '@magic', 'test', 'node_modules', '.bin', 'nyc')
cmd = path.join(cwd, 'node_modules', '@magic', 'test', 'src', 'bin', 'unit.js')
}

Expand Down

0 comments on commit 57c94b1

Please sign in to comment.