Skip to content

Commit 0a04c46

Browse files
simplesmilerktsn
authored andcommitted
test: fix running on windows (#1371)
1 parent 7558cc2 commit 0a04c46

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test": "npm run lint && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e",
2323
"test:unit": "rollup -c build/rollup.dev.config.js && jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
2424
"test:e2e": "node test/e2e/runner.js",
25-
"test:ssr": "rollup -c build/rollup.dev.config.js && VUE_ENV=server jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
25+
"test:ssr": "rollup -c build/rollup.dev.config.js && cross-env VUE_ENV=server jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
2626
"test:types": "tsc -p types/test",
2727
"release": "bash build/release.sh",
2828
"docs": "vuepress dev docs",
@@ -45,6 +45,7 @@
4545
"babel-polyfill": "^6.22.0",
4646
"babel-preset-env": "^1.5.1",
4747
"chromedriver": "^2.32.3",
48+
"cross-env": "^5.2.0",
4849
"cross-spawn": "^5.0.1",
4950
"css-loader": "^0.28.7",
5051
"eslint": "^3.19.0",

test/e2e/nightwatch.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = {
4040
'desiredCapabilities': {
4141
'browserName': 'phantomjs',
4242
'javascriptEnabled': true,
43-
'acceptSslCerts': true
43+
'acceptSslCerts': true,
44+
'phantomjs.binary.path': require('phantomjs-prebuilt').path
4445
}
4546
}
4647
}

0 commit comments

Comments
 (0)