-
Notifications
You must be signed in to change notification settings - Fork 1
Send request to webpack-dev-server before starting tests #22
base: master
Are you sure you want to change the base?
Conversation
dev/spec-setup.js
Outdated
| var SERVER_HOST = "127.0.0.1"; | ||
| var SERVER_PORT = "3000"; | ||
| var DEV_SERVER_TIMEOUT = 20000; | ||
| var DEV_SERVER_TIMEOUT = process.env.TEST_FUNC_DEV_SERVER_TIMEOUT || 20000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GLOBAL: Prefer npm config style variables that can be overridden either by env or by package.json:config
See https://github.com/FormidableLabs/builder#npm-config
The result would be something (and sorry it's long) like:
var DEV_SERVER_TIMEOUT = process.env.npm_package_config_test_func_dev_server_timeout || 20000;|
@ryan-roemer Updated all the configuration to take advantage of npm config. Thanks for all the feedback! |
dev/spec-setup.js
Outdated
| port: SERVER_PORT, | ||
| path: BASE_DIR + "/" | ||
| }, function () { | ||
| cb(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we capture / respond to errors here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.