使用自定义tsConfig.json路径的Angular E2E测试

时间:2019-07-24 08:22:53

标签: angular typescript e2e-testing angular-e2e

我正在尝试为我的应用程序设置E2E测试,但是某些步骤需要调用函数potato

tsconfig.e2e.json
enter image description here

我为potato尝试了不同的路径:
-../potato
-src / potato
-/土豆

但是没有用。

我的IDE(WebStorm)抱怨~potato没有定义,但是当我尝试访问它(Cmd + Mouseover)时,它正确指向tsconfig.e2e.json
enter image description here

enter image description here

我的问题是- (根据编码实践)在我的模块中使用"paths"是否有意义? 是否可以对E2E Testing使用相同的快捷方式? 如果两个问题都同意,那我做错了什么?

enter image description here

0 个答案:

没有答案
相关问题