Skip to content

Commit 3ce23df

Browse files
committed
support test on windows
also add some dependencies
1 parent b9586d9 commit 3ce23df

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ const usedPorts = []
55

66
module.exports = function createJestRunner (jestArgs) {
77
return async function () {
8-
let args = [...jestArgs, ...rawArgs]
98
const execArgv = getChildProcesExecArgv()
10-
args = [...execArgv, 'node_modules/.bin/jest', ...args]
9+
const args = [...execArgv, ...jestArgs, ...rawArgs]
1110
console.log(`running node with args: ${args.join(' ')}`)
12-
await execa('node', args, {
11+
await execa('jest', args, {
1312
stdio: 'inherit'
1413
})
1514
}

packages/@vuepress/test-utils/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"execa": "^0.10.0",
3030
"jest-serializer-vue": "^1.0.0",
3131
"ts-jest": "^23.10.5",
32-
"vue-jest": "^4.0.0-beta.1"
32+
"vue": "^2.5.16",
33+
"vue-jest": "^4.0.0-beta.1",
34+
"vue-template-compiler": "^2.5.16"
3335
},
3436
"author": "ULIVZ <[email protected]>",
3537
"license": "MIT",

0 commit comments

Comments
 (0)