Skip to content

Commit

Permalink
use cross-spawn for e2e runner (fix vuejs-templates#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 11, 2016
1 parent e1baa12 commit dd3a07b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"chromedriver": "^2.21.2",
"connect-history-api-fallback": "^1.1.0",
"cross-env": "^1.0.7",
"cross-spawn": "^2.1.5",
"css-loader": "^0.23.0",
"eslint": "^2.0.0",
"eslint-config-standard": "^5.1.0",
Expand Down
3 changes: 2 additions & 1 deletion template/test/e2e/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var server = require('../../build/dev-server.js')
// 2. add it to the --env flag below
// For more information on Nightwatch's config file, see
// http://nightwatchjs.org/guide#settings-file
var runner = require('child_process').spawn(
var spawn = require('cross-spawn')
var runner = spawn(
'./node_modules/.bin/nightwatch',
[
'--config', 'test/e2e/nightwatch.conf.json',
Expand Down

0 comments on commit dd3a07b

Please sign in to comment.