【发布时间】:2019-04-12 09:30:56
【问题描述】:
我正在使用 Angular CLI 7 和量角器 5.4.2。
我希望我的量角器测试使用 CLI 中的 baseUrl 而不是量角器配置。
我已经尝试过以下方法。
ng e2e --base-url="https://google.com"
只看:
Option "baseUrl" is deprecated: Use "baseUrl" in the Protractor config file instead.
The 'baseUrl' option cannot be used with 'devServerTarget'.
When present, 'devServerTarget' will be used to automatically setup 'baseUrl' for Protractor.
Error: The 'baseUrl' option cannot be used with 'devServerTarget'.
When present, 'devServerTarget' will be used to automatically setup 'baseUrl' for Protractor.
at ProtractorBuilder.run
有没有人经历过这种情况?否则我该如何使用 baseUrl。
谢谢
【问题讨论】: