Skip to content

Commit

Permalink
Avoid no default ip
Browse files Browse the repository at this point in the history
karma-runner/karma-phantomjs-launcher#84 (comment)
If localhost is removed from /etc/hosts phantomjs won't start
  • Loading branch information
billgsm committed Jul 18, 2017
1 parent db40d7f commit a2ff94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "node build/dev-server.js",
"start": "node build/dev-server.js",
"build": "node build/build.js"{{#unit}},
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run"{{/unit}}{{#e2e}},
"unit": "IP=127.0.0.1 cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run"{{/unit}}{{#e2e}},
"e2e": "node test/e2e/runner.js"{{/e2e}}{{#if_or unit e2e}},
"test": "{{#unit}}npm run unit{{/unit}}{{#unit}}{{#e2e}} && {{/e2e}}{{/unit}}{{#e2e}}npm run e2e{{/e2e}}"{{/if_or}}{{#lint}},
"lint": "eslint --ext .js,.vue src{{#unit}} test/unit/specs{{/unit}}{{#e2e}} test/e2e/specs{{/e2e}}"{{/lint}}
Expand Down

0 comments on commit a2ff94c

Please sign in to comment.