Skip to content

Commit 3773935

Browse files
shigmaulivz
authored andcommitted
test: support jest debug (#1404)
* support jest debug * Update .gitignore
1 parent f780e2a commit 3773935

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@vuepress/test-utils/lib/createJestRunner.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ const usedPorts = []
66
module.exports = function createJestRunner (jestArgs) {
77
return async function () {
88
const execArgv = getChildProcesExecArgv()
9-
const args = [...execArgv, ...jestArgs, ...rawArgs]
9+
const args = [...execArgv, ...jestArgs]
1010
console.log(`running node with args: ${args.join(' ')}`)
11-
await execa('jest', args, {
11+
args.unshift(...rawArgs, require.resolve('jest-cli/bin/jest'))
12+
await execa('node', args, {
1213
stdio: 'inherit'
1314
})
1415
}

0 commit comments

Comments
 (0)