Skip to content

Commit

Permalink
test: support jest debug (#1404)
Browse files Browse the repository at this point in the history
* support jest debug

* Update .gitignore
  • Loading branch information
shigma authored and ulivz committed Mar 5, 2019
1 parent f780e2a commit 3773935
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@vuepress/test-utils/lib/createJestRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const usedPorts = []
module.exports = function createJestRunner (jestArgs) {
return async function () {
const execArgv = getChildProcesExecArgv()
const args = [...execArgv, ...jestArgs, ...rawArgs]
const args = [...execArgv, ...jestArgs]
console.log(`running node with args: ${args.join(' ')}`)
await execa('jest', args, {
args.unshift(...rawArgs, require.resolve('jest-cli/bin/jest'))
await execa('node', args, {
stdio: 'inherit'
})
}
Expand Down

0 comments on commit 3773935

Please sign in to comment.