Skip to content

Commit

Permalink
fix(mocha): avoid --inspect-brk flag clobbering other values (#5473)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyo committed May 18, 2020
1 parent 75c398f commit 16d2701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-unit-mocha/index.js
Expand Up @@ -41,7 +41,7 @@ module.exports = api => {

const inspectPos = rawArgv.findIndex(arg => arg.startsWith('--inspect-brk'))
if (inspectPos !== -1) {
nodeArgs = rawArgv.splice(inspectPos, inspectPos + 1)
nodeArgs = rawArgv.splice(inspectPos, 1)
}
// for @vue/babel-preset-app <= v4.0.0-rc.7
process.env.VUE_CLI_BABEL_TARGET_NODE = true
Expand Down

0 comments on commit 16d2701

Please sign in to comment.