Skip to content

Commit

Permalink
feat(service): Allow mocha unit tests debugger to be bound to a speci…
Browse files Browse the repository at this point in the history
…fied IP and port (#5294)
  • Loading branch information
darrylkuhn committed Apr 1, 2020
1 parent 3d200ce commit 0051017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/cli-plugin-unit-mocha/index.js
Expand Up @@ -37,8 +37,9 @@ module.exports = api => {
`https://sysgears.github.io/mochapack/docs/installation/cli-usage.html`
)
}, (args, rawArgv) => {
const inspectPos = rawArgv.indexOf('--inspect-brk')
let nodeArgs = []

const inspectPos = rawArgv.findIndex(arg => arg.startsWith('--inspect-brk'))
if (inspectPos !== -1) {
nodeArgs = rawArgv.splice(inspectPos, inspectPos + 1)
}
Expand Down

0 comments on commit 0051017

Please sign in to comment.