We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8e6450 commit f1fee63Copy full SHA for f1fee63
packages/@vue/cli-plugin-unit-mocha/index.js
@@ -37,8 +37,9 @@ module.exports = api => {
37
`https://sysgears.github.io/mochapack/docs/installation/cli-usage.html`
38
)
39
}, (args, rawArgv) => {
40
- const inspectPos = rawArgv.indexOf('--inspect-brk')
41
let nodeArgs = []
+
42
+ const inspectPos = rawArgv.findIndex(arg => arg.startsWith('--inspect-brk'))
43
if (inspectPos !== -1) {
44
nodeArgs = rawArgv.splice(inspectPos, inspectPos + 1)
45
}
0 commit comments