fix(mocha): avoid --inspect-brk flag clobbering other values (#5473)

This commit is contained in:
tommyo
2020-05-17 22:23:51 -04:00
committed by GitHub
parent 75c398f04e
commit 16d2701011
+1 -1
View File
@@ -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