Closed
Description
Versions
Angular CLI: 6.0.0
Node: 8.9.4
OS: darwin x64
Angular: 6.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... elements, forms, http, language-service, material
... platform-browser, platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.5.12
@angular-devkit/build-optimizer 0.5.12
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@ngtools/webpack 6.0.0-rc.10
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.0.0
typescript 2.7.2
webpack 4.6.0
Repro steps
This may not be an issue, but rather a lack of understanding of how the new cli config works.
- Update port option in myapp-app:serve to 8080
- Set myapp-app-e2e:e2e option of devServerTarget to myapp-app:serve
- Run ng e2e
- Server starts up on localhost:4200 rather than specified port.
Again, maybe I am not understanding how this works, but I would think that if I set the devServerTarget e2e option then whatever configuration that server has it should pull through during the e2e task.
Observed behavior
ng e2e
** Angular Live Development Server is listening on localhost: 4200, open your browser on http://localhost:4200/ **
Desired behavior
I would expect server to startup on the specified port that is set in myapp-app:serve.
Mention any other details that might be useful (optional)
If I set the port option directly in the myapp-app-e2e:e2e options section, then it does respect that and starts up the server on that port.