Skip to content

Commit 16d2701

Browse files
authored
fix(mocha): avoid --inspect-brk flag clobbering other values (vuejs#5473)
1 parent 75c398f commit 16d2701

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-plugin-unit-mocha

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-unit-mocha/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = api => {
4141

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

0 commit comments

Comments
 (0)