Skip to content

Commit f1fee63

Browse files
author
Darryl Kuhn
committed
feat(service): Allow mocha unit tests debugger to be bound to a specified IP and port
1 parent c8e6450 commit f1fee63

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ module.exports = api => {
3737
`https://sysgears.github.io/mochapack/docs/installation/cli-usage.html`
3838
)
3939
}, (args, rawArgv) => {
40-
const inspectPos = rawArgv.indexOf('--inspect-brk')
4140
let nodeArgs = []
41+
42+
const inspectPos = rawArgv.findIndex(arg => arg.startsWith('--inspect-brk'))
4243
if (inspectPos !== -1) {
4344
nodeArgs = rawArgv.splice(inspectPos, inspectPos + 1)
4445
}

0 commit comments

Comments
 (0)